summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Mike Burns <mike@mike-burns.com>2014-11-14 14:45:40 +0100
committerGravatar Mike Burns <mike@mike-burns.com>2014-11-14 14:45:40 +0100
commit94cc84c0a669c3040215653fbaf44feb939bbe05 (patch)
treee934d92fd7c797202ef58f37104e3ccfaacead2e
parenteef64f4055936fbae9ed582673754648c6a5116d (diff)
Update usage messages
Various flags were missing from usage messages across the system; `-g` and `-s` were the most notable ones. Add them to the appropriate usage messages. Spotted by Christopher Koch.
-rwxr-xr-xbin/lsrc.in2
-rwxr-xr-xbin/rcdn.in2
-rwxr-xr-xbin/rcup.in2
-rw-r--r--test/lsrc-usage.t4
-rw-r--r--test/rcup-usage.t4
5 files changed, 7 insertions, 7 deletions
diff --git a/bin/lsrc.in b/bin/lsrc.in
index db5dcd0..ad40b5e 100755
--- a/bin/lsrc.in
+++ b/bin/lsrc.in
@@ -214,7 +214,7 @@ is_excluded() {
show_help() {
local exit_code=${1:-0}
- $PRINT "Usage: lsrc [-FhqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT ] [-t TAG] [-x EXCL_PAT]"
+ $PRINT "Usage: lsrc [-FhqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT ] [-s EXCL_PAT] [-t TAG] [-x EXCL_PAT]"
$PRINT "see lsrc(1) and rcm(7) for more details"
exit $exit_code
diff --git a/bin/rcdn.in b/bin/rcdn.in
index 5596050..91223fa 100755
--- a/bin/rcdn.in
+++ b/bin/rcdn.in
@@ -21,7 +21,7 @@ remove_link() {
show_help() {
local exit_code=${1:-0}
- $PRINT "Usage: rcdn [-hqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT] [-t TAG] [-x EXCL_PAT]"
+ $PRINT "Usage: rcdn [-hKkqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT] [-s EXCL_PAT] [-t TAG] [-x EXCL_PAT]"
$PRINT "see rcdn(1) and rcm(7) for more details"
exit $exit_code
diff --git a/bin/rcup.in b/bin/rcup.in
index 80e55f3..c990ac7 100755
--- a/bin/rcup.in
+++ b/bin/rcup.in
@@ -171,7 +171,7 @@ handle_file() {
show_help() {
local exit_code=${1:-0}
- $PRINT "Usage: rcup [-CfhiKkqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT] [-t TAG] [-x EXCL_PAT]"
+ $PRINT "Usage: rcup [-CfghiKkqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT] [-s EXCL_PAT] [-t TAG] [-x EXCL_PAT]"
$PRINT "see rcup(1) and rcm(7) for more details"
exit $exit_code
diff --git a/test/lsrc-usage.t b/test/lsrc-usage.t
index 1e01993..7d54be8 100644
--- a/test/lsrc-usage.t
+++ b/test/lsrc-usage.t
@@ -3,12 +3,12 @@
-h should output usage information and exit 0
$ lsrc -h
- Usage: lsrc [-FhqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT ] [-t TAG] [-x EXCL_PAT]
+ Usage: lsrc [-FhqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT ] [-s EXCL_PAT] [-t TAG] [-x EXCL_PAT]
see lsrc(1) and rcm(7) for more details
Unsupported options should output usage information and exit EX_USAGE
$ lsrc --version
- Usage: lsrc [-FhqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT ] [-t TAG] [-x EXCL_PAT]
+ Usage: lsrc [-FhqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT ] [-s EXCL_PAT] [-t TAG] [-x EXCL_PAT]
see lsrc(1) and rcm(7) for more details
[64]
diff --git a/test/rcup-usage.t b/test/rcup-usage.t
index 336c668..fb0b78f 100644
--- a/test/rcup-usage.t
+++ b/test/rcup-usage.t
@@ -3,12 +3,12 @@
-h should output usage information and exit 0
$ rcup -h
- Usage: rcup [-CfhiKkqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT] [-t TAG] [-x EXCL_PAT]
+ Usage: rcup [-CfghiKkqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT] [-s EXCL_PAT] [-t TAG] [-x EXCL_PAT]
see rcup(1) and rcm(7) for more details
Unsupported options should output usage information and exit EX_USAGE
$ rcup --version
- Usage: rcup [-CfhiKkqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT] [-t TAG] [-x EXCL_PAT]
+ Usage: rcup [-CfghiKkqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT] [-s EXCL_PAT] [-t TAG] [-x EXCL_PAT]
see rcup(1) and rcm(7) for more details
[64]