diff options
| author | tslil <tslil@posteo.de> | 2026-07-14 12:20:44 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-07-14 13:02:51 +0100 |
| commit | 156cbfe2b0383521f540109682d98d35c88d65f8 (patch) | |
| tree | e4607f60c1c58ad566d2d86488a601d58eee4220 /src/cli.rs | |
| parent | 861fb134ad6d77faeb23e9571a31e0c6031d7374 (diff) | |
don't cache album list, use compression only on json for ease of inspection
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); |
