mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
git-standup: add sanity check to -d option and overwrite -w option
This commit is contained in:
parent
0b91cd9bae
commit
684d6acc93
|
|
@ -73,7 +73,11 @@ while getopts "hgfd:a:w:m:D:L" opt; do
|
|||
;;
|
||||
d)
|
||||
test -n "$SINCE" && warn "-d option is conflict with -w"
|
||||
SINCE=${SINCE:="$OPTARG days ago"}
|
||||
if [ "$OPTARG" -lt 1 ]; then
|
||||
>&2 echo "Specify days less than one is invalid"
|
||||
exit 1
|
||||
fi
|
||||
SINCE="$OPTARG days ago"
|
||||
;;
|
||||
w)
|
||||
if [ -n "$SINCE" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue