Deleted Added
full compact
file_opts.h (284237) file_opts.h (284277)
1/*
2 * Table of command-line options
3 *
4 * The first column specifies the short name, if any, or 0 if none.
5 * The second column specifies the long name.
6 * The third column specifies whether it takes a parameter.
7 * The fourth column is the documentation.
8 *
9 * N.B. The long options' order must correspond to the code in file.c,
10 * and OPTSTRING must be kept up-to-date with the short options.
11 * Pay particular attention to the numbers of long-only options in the
12 * switch statement!
13 */
14
1/*
2 * Table of command-line options
3 *
4 * The first column specifies the short name, if any, or 0 if none.
5 * The second column specifies the long name.
6 * The third column specifies whether it takes a parameter.
7 * The fourth column is the documentation.
8 *
9 * N.B. The long options' order must correspond to the code in file.c,
10 * and OPTSTRING must be kept up-to-date with the short options.
11 * Pay particular attention to the numbers of long-only options in the
12 * switch statement!
13 */
14
15OPT_LONGONLY("help", 0, " display this help and exit\n")
15OPT_LONGONLY("help", 0, " display this help and exit\n", OPT_HELP)
16OPT('v', "version", 0, " output version information and exit\n")
17OPT('m', "magic-file", 1, " LIST use LIST as a colon-separated list of magic\n"
18 " number files\n")
19OPT('z', "uncompress", 0, " try to look inside compressed files\n")
20OPT('Z', "uncompress-noreport", 0, " only print the contents of compressed files\n")
21OPT('b', "brief", 0, " do not prepend filenames to output lines\n")
22OPT('c', "checking-printout", 0, " print the parsed form of the magic file, use in\n"
23 " conjunction with -m to debug a new magic file\n"
24 " before installing it\n")
25OPT('e', "exclude", 1, " TEST exclude TEST from the list of test to be\n"
26 " performed for file. Valid tests are:\n"
27 " %o\n")
28OPT('f', "files-from", 1, " FILE read the filenames to be examined from FILE\n")
29OPT('F', "separator", 1, " STRING use string as separator instead of `:'\n")
30OPT('i', "mime", 0, " output MIME type strings (--mime-type and\n"
31 " --mime-encoding)\n")
16OPT('v', "version", 0, " output version information and exit\n")
17OPT('m', "magic-file", 1, " LIST use LIST as a colon-separated list of magic\n"
18 " number files\n")
19OPT('z', "uncompress", 0, " try to look inside compressed files\n")
20OPT('Z', "uncompress-noreport", 0, " only print the contents of compressed files\n")
21OPT('b', "brief", 0, " do not prepend filenames to output lines\n")
22OPT('c', "checking-printout", 0, " print the parsed form of the magic file, use in\n"
23 " conjunction with -m to debug a new magic file\n"
24 " before installing it\n")
25OPT('e', "exclude", 1, " TEST exclude TEST from the list of test to be\n"
26 " performed for file. Valid tests are:\n"
27 " %o\n")
28OPT('f', "files-from", 1, " FILE read the filenames to be examined from FILE\n")
29OPT('F', "separator", 1, " STRING use string as separator instead of `:'\n")
30OPT('i', "mime", 0, " output MIME type strings (--mime-type and\n"
31 " --mime-encoding)\n")
32OPT_LONGONLY("apple", 0, " output the Apple CREATOR/TYPE\n")
33OPT_LONGONLY("extension", 0, " output a slash-separated list of extnsions\n")
34OPT_LONGONLY("mime-type", 0, " output the MIME type\n")
35OPT_LONGONLY("mime-encoding", 0, " output the MIME encoding\n")
32OPT_LONGONLY("apple", 0, " output the Apple CREATOR/TYPE\n", OPT_APPLE)
33OPT_LONGONLY("extension", 0, " output a slash-separated list of extensions\n", OPT_EXTENSIONS)
34OPT_LONGONLY("mime-type", 0, " output the MIME type\n", OPT_MIME_TYPE)
35OPT_LONGONLY("mime-encoding", 0, " output the MIME encoding\n", OPT_MIME_ENCODING)
36OPT('k', "keep-going", 0, " don't stop at the first match\n")
37OPT('l', "list", 0, " list magic strength\n")
38#ifdef S_IFLNK
39OPT('L', "dereference", 0, " follow symlinks (default)\n")
40OPT('h', "no-dereference", 0, " don't follow symlinks\n")
41#endif
42OPT('n', "no-buffer", 0, " do not buffer output\n")
43OPT('N', "no-pad", 0, " do not pad output\n")

--- 15 unchanged lines hidden ---
36OPT('k', "keep-going", 0, " don't stop at the first match\n")
37OPT('l', "list", 0, " list magic strength\n")
38#ifdef S_IFLNK
39OPT('L', "dereference", 0, " follow symlinks (default)\n")
40OPT('h', "no-dereference", 0, " don't follow symlinks\n")
41#endif
42OPT('n', "no-buffer", 0, " do not buffer output\n")
43OPT('N', "no-pad", 0, " do not pad output\n")

--- 15 unchanged lines hidden ---