Lines Matching full:help
10 * Test that "--help", "-h", and "-W help" options all work and
33 /* Exercise --help option. */
34 r = systemf("%s --help >help.stdout 2>help.stderr", testprog);
36 failure("--help should generate nothing to stderr.");
37 assertEmptyFile("help.stderr");
38 /* Help message should start with name of program. */
39 p = slurpfile(&plen, "help.stdout");
40 failure("Help output should be long enough.");
42 failure("First line of help output should contain 'bsdtar': %s", p);
45 * TODO: Extend this check to further verify that --help output
55 failure("stdout should be same for -h and --help");
56 assertEqualFile("h.stdout", "help.stdout");
58 /* -W help should be another synonym. */
59 r = systemf("%s -W help >Whelp.stdout 2>Whelp.stderr", testprog);
61 failure("-W help should generate nothing to stderr.");
63 failure("stdout should be same for -W help and --help");
64 assertEqualFile("Whelp.stdout", "help.stdout");