From d9ca93ab918564e36f4984336629d55fe0fd3b85 Mon Sep 17 00:00:00 2001
From: Jerome Charaoui <jerome@riseup.net>
Date: Mon, 2 Jul 2018 16:06:16 -0400
Subject: [PATCH] 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.
---
 man/backupninja.1  | 2 +-
 src/backupninja.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/man/backupninja.1 b/man/backupninja.1
index cce4c34..3998728 100644
--- a/man/backupninja.1
+++ b/man/backupninja.1
@@ -71,7 +71,7 @@ burn CD/DVDs or create ISOs.
 .B \-h, \-\-help           
 Show summary of options
 .TP
-.B \-v, \-\-version           
+.B \-V, \-\-version           
 Show backupninja version number
 .TP
 .B \-d, \-\-debug          
diff --git a/src/backupninja.in b/src/backupninja.in
index 8814df6..ef8fc2d 100755
--- a/src/backupninja.in
+++ b/src/backupninja.in
@@ -278,7 +278,7 @@ script is run hourly from cron.
 
 The following options are available:
 -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
                      output to the current shell.
 -f, --conffile FILE  Use FILE for the main configuration instead
@@ -439,7 +439,7 @@ version="@PACKAGE_VERSION@"
 while [ $# -ge 1 ]; do
    case $1 in
       -h|--help) usage;;
-      -v|--version) echo "backupninja $version";;
+      -V|--version) echo "backupninja $version";;
       -d|--debug) debug=1; export BACKUPNINJA_DEBUG=yes;;
       -t|--test) test=1;debug=1;;
       -n|--now) processnow=1;;
-- 
GitLab