Debian Codegraph @

test/mkrc-usage.t

raw
1 $ . "$TESTDIR/helper.sh"
2
3 no arguments should output usage information and exit EX_USAGE
4
5 $ mkrc
6 Usage: mkrc [-ChSsUuVvqokK] [-t TAG] [-d DIR] [-B HOSTNAME] FILES ...
7 see mkrc(1) and rcm(7) for more details
8 [64]
9
10 -h should output usage information and exit 0
11
12 $ mkrc -h
13 Usage: mkrc [-ChSsUuVvqokK] [-t TAG] [-d DIR] [-B HOSTNAME] FILES ...
14 see mkrc(1) and rcm(7) for more details
15
16 Unsupported options should output usage information and exit EX_USAGE
17
18 $ mkrc --version
19 Usage: mkrc [-ChSsUuVvqokK] [-t TAG] [-d DIR] [-B HOSTNAME] FILES ...
20 see mkrc(1) and rcm(7) for more details
21 [64]