mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
effort: add usage message
This commit is contained in:
parent
86e1a7014c
commit
e91fd9623f
|
|
@ -4,6 +4,13 @@ tmp=$(git_extra_mktemp)
|
|||
above=0
|
||||
color=
|
||||
|
||||
#
|
||||
# print usage message
|
||||
#
|
||||
usage() {
|
||||
echo 1>&2 "usage: git effort [--above <value>] [<path>...] [-- [<log options>...]]"
|
||||
}
|
||||
|
||||
#
|
||||
# get dates for the given <commit>
|
||||
#
|
||||
|
|
@ -129,6 +136,7 @@ while [ "${#}" -ge 1 ] ; do
|
|||
break
|
||||
;;
|
||||
--*)
|
||||
usage
|
||||
echo 1>&2 "error: unknown argument $1"
|
||||
echo 1>&2 "error: if that argument was meant for git-log,"
|
||||
echo 1>&2 "error: please put it after two dashes ( -- )."
|
||||
|
|
|
|||
Loading…
Reference in a new issue