Add help texts for CLI arguments

This commit is contained in:
Denis Redozubov 2023-06-28 13:55:08 +04:00
parent 1eaecd0180
commit 5c0e33cc40

View file

@ -15,28 +15,28 @@ use DrumPart::*;
#[command(version = "0.1")]
#[command(about = "Polyrhythmically-inclinded Midi Drum generator", long_about = None)]
struct Cli {
#[arg(short = 'K', default_value = None)]
#[arg(short = 'K', default_value = None, help = "Kick drum pattern")]
kick: Option<String>,
#[arg(short = 'S', default_value = None)]
#[arg(short = 'S', default_value = None, help = "Snare drum pattern")]
snare: Option<String>,
#[arg(short = 'H', default_value = None)]
#[arg(short = 'H', default_value = None, help = "Hi-Hat pattern")]
hihat: Option<String>,
#[arg(short = 'C', default_value = None)]
#[arg(short = 'C', default_value = None, help = "Crash cymbal pattern")]
crash: Option<String>,
#[arg(short = 't', default_value = "120")]
#[arg(short = 't', default_value = "120", help = "Tempo value")]
tempo: u16,
#[arg(short = 's', default_value = "4/4")]
#[arg(short = 's', default_value = "4/4", help = "Time signature")]
time_signature: String,
#[arg(short = 'o', default_value = None)]
#[arg(short = 'o', default_value = None, help = "Output file path, dry-run if omitted")]
output: Option<String>,
#[clap(short = 'B', long)]
#[clap(short = 'B', long, help = "Generate a second MIDI track for the bass following the kick drum")]
follow_kick_drum_with_bass: bool,
}