mirror of
https://github.com/dredozubov/polyrhythmix.git
synced 2024-11-22 11:57:43 +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(version = "0.1")]
|
||||||
#[command(about = "Polyrhythmically-inclinded Midi Drum generator", long_about = None)]
|
#[command(about = "Polyrhythmically-inclinded Midi Drum generator", long_about = None)]
|
||||||
struct Cli {
|
struct Cli {
|
||||||
#[arg(short = 'K', default_value = None)]
|
#[arg(short = 'K', default_value = None, help = "Kick drum pattern")]
|
||||||
kick: Option<String>,
|
kick: Option<String>,
|
||||||
|
|
||||||
#[arg(short = 'S', default_value = None)]
|
#[arg(short = 'S', default_value = None, help = "Snare drum pattern")]
|
||||||
snare: Option<String>,
|
snare: Option<String>,
|
||||||
|
|
||||||
#[arg(short = 'H', default_value = None)]
|
#[arg(short = 'H', default_value = None, help = "Hi-Hat pattern")]
|
||||||
hihat: Option<String>,
|
hihat: Option<String>,
|
||||||
|
|
||||||
#[arg(short = 'C', default_value = None)]
|
#[arg(short = 'C', default_value = None, help = "Crash cymbal pattern")]
|
||||||
crash: Option<String>,
|
crash: Option<String>,
|
||||||
|
|
||||||
#[arg(short = 't', default_value = "120")]
|
#[arg(short = 't', default_value = "120", help = "Tempo value")]
|
||||||
tempo: u16,
|
tempo: u16,
|
||||||
|
|
||||||
#[arg(short = 's', default_value = "4/4")]
|
#[arg(short = 's', default_value = "4/4", help = "Time signature")]
|
||||||
time_signature: String,
|
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>,
|
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,
|
follow_kick_drum_with_bass: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue