summaryrefslogtreecommitdiff
path: root/test/lsrc-usage.t
blob: 409a9bd8d575530e85ff6ef12501f309e8131ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  $ . "$TESTDIR/helper.sh"

-h should output usage information and exit 0

  $ lsrc -h
  Usage: lsrc [-FhqVv] [-B HOSTNAME] [-d DOT_DIR] [-I EXCL_PAT] [-S EXCL_PAT] [-s EXCL_PAT] [-t TAG] [-U EXCL_PAT] [-u EXCL_PAT] [-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] [-s EXCL_PAT] [-t TAG] [-U EXCL_PAT] [-u EXCL_PAT] [-x EXCL_PAT]
  see lsrc(1) and rcm(7) for more details
  [64]