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:
@ -93,6 +93,11 @@ pub enum SubCommand {
|
|||||||
help = "Starte interaktiven Dialog zum Modifizieren von OSC-Dateien"
|
help = "Starte interaktiven Dialog zum Modifizieren von OSC-Dateien"
|
||||||
)]
|
)]
|
||||||
interactive: bool,
|
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")]
|
#[command(about = "Vergleiche zwei Dateien anhand der Revision der enthaltenen Inhalte")]
|
||||||
Diff {
|
Diff {
|
||||||
|
@ -156,6 +156,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
sorted,
|
sorted,
|
||||||
strip,
|
strip,
|
||||||
interactive,
|
interactive,
|
||||||
|
fix,
|
||||||
} => {
|
} => {
|
||||||
let data = &mut read_inputfile(inputfile)?;
|
let data = &mut read_inputfile(inputfile)?;
|
||||||
|
|
||||||
@ -192,6 +193,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if fix {
|
||||||
|
// No operation as of now
|
||||||
|
}
|
||||||
|
|
||||||
if sorted {
|
if sorted {
|
||||||
data.sorted();
|
data.sorted();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user