feat(cli): arg --menu (#37)

- Add `--menu` to args
- Add `--version` to args
- Change default behavior: At a first run of the app, the menu will be shown by default (similar to what @tschinz suggested in #33). However, if an user hides the menu later and closes the app, the menu will be hidden again with a next start. Just because the app restores the last app state.
This commit is contained in:
Jens K.
2025-01-01 15:13:10 +01:00
committed by GitHub
parent e674314207
commit a4f8885eb1
5 changed files with 11 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ impl From<(Args, AppStorage)> for AppArgs {
fn from((args, stg): (Args, AppStorage)) -> Self {
AppArgs {
with_decis: args.decis || stg.with_decis,
show_menu: stg.show_menu,
show_menu: args.menu || stg.show_menu,
content: args.mode.unwrap_or(stg.content),
style: args.style.unwrap_or(stg.style),
pomodoro_mode: stg.pomodoro_mode,