1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-07-02 00:42:53 +00:00

Issue #15: Add flag '--fix' to modify sub command

This commit is contained in:
2023-11-06 14:00:20 +01:00
parent 6da1c48c28
commit 7b13251d34
2 changed files with 10 additions and 0 deletions

View File

@ -93,6 +93,11 @@ pub enum SubCommand {
help = "Starte interaktiven Dialog zum Modifizieren von OSC-Dateien"
)]
interactive: bool,
#[arg(
long = "fix",
help = "Erweiterte Problembehandlung und Reparatur der OSC-Datei"
)]
fix: bool,
},
#[command(about = "Vergleiche zwei Dateien anhand der Revision der enthaltenen Inhalte")]
Diff {

View File

@ -156,6 +156,7 @@ fn main() -> Result<(), Box<dyn Error>> {
sorted,
strip,
interactive,
fix,
} => {
let data = &mut read_inputfile(inputfile)?;
@ -192,6 +193,10 @@ fn main() -> Result<(), Box<dyn Error>> {
.unwrap();
}
if fix {
// No operation as of now
}
if sorted {
data.sorted();
}