summaryrefslogtreecommitdiff
path: root/test/mkrc-usage.t
blob: b6715e92bebbeb9154144a5d18fd4f6327549ee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  $ . "$TESTDIR/helper.sh"

no arguments should output usage information and exit EX_USAGE

  $ mkrc
  Usage: mkrc [-ChSsUuVvqo] [-t TAG] [-d DIR] [-B HOSTNAME] FILES ...
  see mkrc(1) and rcm(7) for more details
  [64]

-h should output usage information and exit 0

  $ mkrc -h
  Usage: mkrc [-ChSsUuVvqo] [-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 [-ChSsUuVvqo] [-t TAG] [-d DIR] [-B HOSTNAME] FILES ...
  see mkrc(1) and rcm(7) for more details
  [64]