Use -V instead of -v as shorthand for --version

The capital-V is more common as shorthand for --version, since many
commandline tools use -v as a shorthand for --verbose.
This commit is contained in:
Jerome Charaoui 2018-07-02 16:06:16 -04:00
parent fa8301c924
commit d9ca93ab91
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ burn CD/DVDs or create ISOs.
.B \-h, \-\-help .B \-h, \-\-help
Show summary of options Show summary of options
.TP .TP
.B \-v, \-\-version .B \-V, \-\-version
Show backupninja version number Show backupninja version number
.TP .TP
.B \-d, \-\-debug .B \-d, \-\-debug

View File

@ -278,7 +278,7 @@ script is run hourly from cron.
The following options are available: The following options are available:
-h, --help This usage message -h, --help This usage message
-v, --version Show backupninja version number -V, --version Show backupninja version number
-d, --debug Run in debug mode, where all log messages are -d, --debug Run in debug mode, where all log messages are
output to the current shell. output to the current shell.
-f, --conffile FILE Use FILE for the main configuration instead -f, --conffile FILE Use FILE for the main configuration instead
@ -439,7 +439,7 @@ version="@PACKAGE_VERSION@"
while [ $# -ge 1 ]; do while [ $# -ge 1 ]; do
case $1 in case $1 in
-h|--help) usage;; -h|--help) usage;;
-v|--version) echo "backupninja $version";; -V|--version) echo "backupninja $version";;
-d|--debug) debug=1; export BACKUPNINJA_DEBUG=yes;; -d|--debug) debug=1; export BACKUPNINJA_DEBUG=yes;;
-t|--test) test=1;debug=1;; -t|--test) test=1;debug=1;;
-n|--now) processnow=1;; -n|--now) processnow=1;;