Add optional sorted listing of file contents

This commit is contained in:
2023-06-15 23:27:21 +02:00
parent 0f584997f7
commit 11b233b642
9 changed files with 68 additions and 8 deletions

View File

@@ -35,7 +35,14 @@ pub struct Cli {
#[derive(Subcommand)]
pub enum Command {
#[command(about = "Zeigt alle enthaltenen Kataloge und Formulare mit Revision an.")]
List { inputfile: String },
List {
inputfile: String,
#[arg(
long = "sorted",
help = "Sortiere Kataloge und Formulare nach Name (Optional)"
)]
sorted: bool,
},
#[command(about = "Modifiziert die angegebene Datei anhand der Profildatei")]
Modify {
inputfile: String,