aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-07-14 12:20:44 +0100
committertslil <tslil@posteo.de>2026-07-14 13:02:51 +0100
commit156cbfe2b0383521f540109682d98d35c88d65f8 (patch)
treee4607f60c1c58ad566d2d86488a601d58eee4220 /src/cli.rs
parent861fb134ad6d77faeb23e9571a31e0c6031d7374 (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.rs7
1 files changed, 2 insertions, 5 deletions
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.
<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);