diff options
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -6,7 +6,6 @@ pub enum Action { NewState, DumpTrajectory, DumpLearner, - DumpAlbums, Run, } @@ -27,7 +26,6 @@ Options: --new-state Write a default state file and exit. --dump-trajectory Dump the play trajectory as JSON to stdout. --dump-learner Dump learner weights as JSON to stdout. - --dump-albums Dump album list from state as JSON to stdout. <no option> Suggest and play the next album" ); } @@ -39,11 +37,11 @@ pub fn parse() -> Option<Action> { match args.next().as_deref() { None => Some(Action::Run), - Some("--help") | Some("-h") => { + Some("--help" | "-h") => { print_help(); None } - Some("--version") | Some("-V") | Some("-v") => { + Some("--version" | "-V" | "-v") => { println!("{NAME} {VERSION}"); None } @@ -51,7 +49,6 @@ pub fn parse() -> Option<Action> { Some("--new-state") => Some(Action::NewState), Some("--dump-trajectory") => Some(Action::DumpTrajectory), Some("--dump-learner") => Some(Action::DumpLearner), - Some("--dump-albums") => Some(Action::DumpAlbums), Some(unknown) => { eprintln!("Unknown option: {unknown}"); std::process::exit(1); |
