summaryrefslogtreecommitdiff
path: root/test/mkrc-usage.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/mkrc-usage.t')
-rw-r--r--test/mkrc-usage.t11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/mkrc-usage.t b/test/mkrc-usage.t
index d4f4a9f..4649152 100644
--- a/test/mkrc-usage.t
+++ b/test/mkrc-usage.t
@@ -1,14 +1,21 @@
$ . "$TESTDIR/helper.sh"
-no arguments should output usage information and exit 1
+no arguments should output usage information and exit EX_USAGE
$ mkrc
Usage: mkrc [-ChSsVvqo] [-t TAG] [-d DIR] [-B HOSTNAME] FILES ...
see mkrc(1) and rcm(7) for more details
- [1]
+ [64]
-h should output usage information and exit 0
$ mkrc -h
Usage: mkrc [-ChSsVvqo] [-t TAG] [-d DIR] [-B HOSTNAME] FILES ...
see mkrc(1) and rcm(7) for more details
+
+Unsupported options should output usage information and exit EX_USAGE
+
+ $ mkrc --version
+ Usage: mkrc [-ChSsVvqo] [-t TAG] [-d DIR] [-B HOSTNAME] FILES ...
+ see mkrc(1) and rcm(7) for more details
+ [64]