From a4f8885eb1f6efbcc4052f995680840cb957c476 Mon Sep 17 00:00:00 2001 From: "Jens K." <47693+sectore@users.noreply.github.com> Date: Wed, 1 Jan 2025 15:13:10 +0100 Subject: [PATCH] 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. --- README.md | 2 ++ src/app.rs | 2 +- src/args.rs | 4 ++++ src/common.rs | 6 +++--- src/storage.rs | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 911ee5a..e253fd7 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,11 @@ Options: -p, --pause Pause time to count down from. Formats: 'ss', 'mm:ss', or 'hh:mm:ss' [default: 5:00] -d, --decis Wether to show deciseconds or not. [default: false] -m, --mode Mode to start with. [possible values: countdown, timer, pomodoro] [default: timer] + --menu Whether to open the menu or not. -s, --style