From a3040719bf8d5ff9ee7ebe9d18993b5168552220 Mon Sep 17 00:00:00 2001 From: Rene Kita Date: Mon, 20 Mar 2023 09:18:56 +0100 Subject: [PATCH] Add alias for -w --- workinghours | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workinghours b/workinghours index e8dec04..4d6612b 100755 --- a/workinghours +++ b/workinghours @@ -30,6 +30,7 @@ Mandatory arguments to long options are mandatory for short options too. last week into archive directory HOURS is the amount of hours your were supposed to work + -n alias for -w -h, --help show this help Any option can be combined with --session option. Furthermore, --new-week can be combined with --week-number option - which can be @@ -60,7 +61,7 @@ while :; do opt_init=y shift ;; - -w|--new-week) + -[nw]|--new-week) week=y target=$2 case ${target#[+-]} in -- 2.45.2