source: tests/configs/.expect/usage.txt @ 508cff0

Last change on this file since 508cff0 was f82f07e, checked in by Thierry Delisle <tdelisle@…>, 2 years ago

Fixes to usage and corresponding tests

  • Property mode set to 100644
File size: 2.2 KB
Line 
1No args, no errors
2Usage:
3  ./usage Test usage
4  -h, --help   print this help message
5Child status:
6IFEXITED   : 1, EXITSTATUS : 0, IFSIGNALED : 0, TERMSIG    : 0, COREDUMP   : 0, IFSTOPPED  : 0, STOPSIG    : 0, IFCONTINUED: 0
7
8No args, with errors
9Usage:
10  ./usage Test usage
11  -h, --help   print this help message
12Child status:
13IFEXITED   : 1, EXITSTATUS : 1, IFSIGNALED : 0, TERMSIG    : 0, COREDUMP   : 0, IFSTOPPED  : 0, STOPSIG    : 1, IFCONTINUED: 0
14
15Args with short names only:
16Usage:
17  ./usage Test usage
18  -a       First arg
19  -b       Second arg
20  -c       Third arg
21  -h, --help   print this help message
22Child status:
23IFEXITED   : 1, EXITSTATUS : 0, IFSIGNALED : 0, TERMSIG    : 0, COREDUMP   : 0, IFSTOPPED  : 0, STOPSIG    : 0, IFCONTINUED: 0
24
25Args with long names only:
26Usage:
27  ./usage Test usage
28      --AA   First arg
29      --BB   Second arg
30      --CC   Third arg
31  -h, --help   print this help message
32Child status:
33IFEXITED   : 1, EXITSTATUS : 0, IFSIGNALED : 0, TERMSIG    : 0, COREDUMP   : 0, IFSTOPPED  : 0, STOPSIG    : 0, IFCONTINUED: 0
34
35Mix of short and long args:
36Usage:
37  ./usage Test usage
38  -a           First arg
39  -b, --BBBB   Second arg
40      --CC     Third arg
41  -h, --help   print this help message
42Child status:
43IFEXITED   : 1, EXITSTATUS : 0, IFSIGNALED : 0, TERMSIG    : 0, COREDUMP   : 0, IFSTOPPED  : 0, STOPSIG    : 0, IFCONTINUED: 0
44
45Mix of short and long and some missing description:
46Usage:
47  ./usage Test usage
48  -a           First arg
49  -b, --BBBB
50      --CC     Third arg
51  -h, --help   print this help message
52Child status:
53IFEXITED   : 1, EXITSTATUS : 0, IFSIGNALED : 0, TERMSIG    : 0, COREDUMP   : 0, IFSTOPPED  : 0, STOPSIG    : 0, IFCONTINUED: 0
54
55Mix of short and long and some long description:
56Usage:
57  ./usage Test usage
58  -a           First arg
59               The description has multiple lines,
60               ...for some reason
61  -b, --BBBB   12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
62      --CC     Third arg
63  -h, --help   print this help message
64Child status:
65IFEXITED   : 1, EXITSTATUS : 0, IFSIGNALED : 0, TERMSIG    : 0, COREDUMP   : 0, IFSTOPPED  : 0, STOPSIG    : 0, IFCONTINUED: 0
66
Note: See TracBrowser for help on using the repository browser.