mirror of
https://github.com/dredozubov/polyrhythmix.git
synced 2024-12-22 14:25:29 +00:00
Add help texts for CLI arguments
This commit is contained in:
parent
1eaecd0180
commit
5c0e33cc40
1 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue