mirror of
https://github.com/dredozubov/polyrhythmix.git
synced 2024-11-21 19:37:42 +00:00
Fix --version to show the same version as cargo
This commit is contained in:
parent
f8d214bce7
commit
007bdd996a
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ use DrumPart::*;
|
||||||
#[derive(Debug, Parser, Clone)]
|
#[derive(Debug, Parser, Clone)]
|
||||||
#[command(name = "Polyrhythmix")]
|
#[command(name = "Polyrhythmix")]
|
||||||
#[command(author = "Denis Redozubov <denis.redozubov@gmail.com>")]
|
#[command(author = "Denis Redozubov <denis.redozubov@gmail.com>")]
|
||||||
#[command(version = "0.1")]
|
#[command(version = "0.1.0")]
|
||||||
#[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', long = "kick", default_value = None, help = "Kick drum pattern")]
|
#[arg(short = 'K', long = "kick", default_value = None, help = "Kick drum pattern")]
|
||||||
|
@ -59,7 +59,7 @@ fn validate_and_parse_part(
|
||||||
Some(pattern) => match dsl::groups(pattern.as_str()) {
|
Some(pattern) => match dsl::groups(pattern.as_str()) {
|
||||||
Ok((_, groups)) => {
|
Ok((_, groups)) => {
|
||||||
patterns.insert(part, groups);
|
patterns.insert(part, groups);
|
||||||
}
|
},
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
panic!("{} pattern is malformed.", part_to_string(part))
|
panic!("{} pattern is malformed.", part_to_string(part))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue