Added long option (--weeks) to the -w option.

This makes it clearer that it is supported in conjunction with git-config
as well.
This commit is contained in:
Adam Waldenberg 2013-07-02 07:45:56 +02:00
parent 15026f6f00
commit f20b826d2d
5 changed files with 6 additions and 6 deletions

View file

@ -95,7 +95,7 @@ def main():
__opts__, __args__ = getopt.gnu_getopt(sys.argv[1:], "cf:F:hHlmrTwx:", ["checkout-missing", "exclude=",
"file-types=", "format=", "hard", "help", "list-file-types",
"metrics", "responsibilities", "since=", "grading",
"timeline", "until=", "version"])
"timeline", "until=", "version", "weeks"])
for arg in __args__:
__run__.repo = arg
@ -138,7 +138,7 @@ def main():
__run__.timeline = True
elif o in("--until"):
interval.set_until(a)
elif o in("-w"):
elif o in("-w", "--weeks"):
__run__.useweeks = True
elif o in("-x", "--exclude"):
filtering.add(a)

View file

@ -54,7 +54,7 @@ Mandatory arguments to long options are mandatory for short options too.
-T, --timeline show commit timeline, including author names
--until=DATE only show statistics for commits older than a
specific date
-w show all statistical information in weeks
-w, --weeks show all statistical information in weeks
instead of in months
-x, --exclude=PATTERN an exclusion pattern describing file names that
should be excluded from the statistics; can

View file

@ -127,7 +127,7 @@ msgid ""
" -T, --timeline show commit timeline, including author names\n"
" --until=DATE only show statistics for commits older than a\n"
" specific date\n"
" -w show all statistical information in weeks\n"
" -w, --weeks show all statistical information in weeks\n"
" instead of in months\n"
" -x, --exclude=PATTERN an exclusion pattern describing file names that\n"
" should be excluded from the statistics; can\n"

View file

@ -154,7 +154,7 @@ msgid ""
" --until=DATE only show statistics for commits older than "
"a\n"
" specific date\n"
" -w show all statistical information in weeks\n"
" -w, --weeks show all statistical information in weeks\n"
" instead of in months\n"
" -x, --exclude=PATTERN an exclusion pattern describing file names "
"that\n"
@ -213,7 +213,7 @@ msgstr ""
" --until=DATUM beräkna endast statistik för inlämningar "
"äldre\n"
" än ett angivet datum\n"
" -w visa statistisk information indelad i veckor\n"
" -w, --weeks visa statistisk information indelad i veckor\n"
" istället för månader\n"
" -x, --exclude=MÖNSTER ett uteslutningsmönster som anger de filnamn\n"
" som ska uteslutas ur statistiken; kan "