From 156cbfe2b0383521f540109682d98d35c88d65f8 Mon Sep 17 00:00:00 2001 From: tslil Date: Tue, 14 Jul 2026 12:20:44 +0100 Subject: don't cache album list, use compression only on json for ease of inspection --- src/cli.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index f1563b3..7be3fd4 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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. Suggest and play the next album" ); } @@ -39,11 +37,11 @@ pub fn parse() -> Option { 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 { 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); -- cgit v1.2.3