summaryrefslogtreecommitdiff
path: root/test/mkrc-usage.t
blob: 4649152eaa80079dc9912b316935894a32931246 (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 [-ChSsVvqo] [-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 [-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]