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"
|
||||
)]
|
||||
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 {
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user