From 94cc84c0a669c3040215653fbaf44feb939bbe05 Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Fri, 14 Nov 2014 14:45:40 +0100 Subject: 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. --- bin/lsrc.in | 2 +- bin/rcdn.in | 2 +- bin/rcup.in | 2 +- test/lsrc-usage.t | 4 ++-- test/rcup-usage.t | 4 ++-- 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] -- cgit v1.2.3