file_opts.h revision 186675
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")
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('b', "brief", 0, "                do not prepend filenames to output lines\n")
21OPT('c', "checking-printout", 0, "    print the parsed form of the magic file, use in\n"
22    "                               conjunction with -m to debug a new magic file\n"
23    "                               before installing it\n")
24OPT('e', "exclude", 1, " TEST         exclude TEST from the list of test to be\n"
25    "                               performed for file. Valid tests are:\n"
26    "                               ascii, apptype, compress, elf, soft, tar, tokens, troff\n")
27OPT('f', "files-from", 1, " FILE      read the filenames to be examined from FILE\n")
28OPT('F', "separator", 1, " STRING     use string as separator instead of `:'\n")
29OPT('i', "mime", 0, "                 output MIME type strings (--mime-type and\n"
30    "                               --mime-encoding)\n")
31OPT_LONGONLY("mime-type", 0, "            output the MIME type\n")
32OPT_LONGONLY("mime-encoding", 0, "        output the MIME encoding\n")
33OPT('k', "keep-going", 0, "           don't stop at the first match\n")
34#ifdef S_IFLNK
35OPT('L', "dereference", 0, "          follow symlinks (default)\n")
36OPT('h', "no-dereference", 0, "       don't follow symlinks\n")
37#endif
38OPT('n', "no-buffer", 0, "            do not buffer output\n")
39OPT('N', "no-pad", 0, "               do not pad output\n")
40OPT('0', "print0", 0, "               terminate filenames with ASCII NUL\n")
41#if defined(HAVE_UTIME) || defined(HAVE_UTIMES)
42OPT('p', "preserve-date", 0, "        preserve access times on files\n")
43#endif
44OPT('r', "raw", 0, "                  don't translate unprintable chars to \\ooo\n")
45OPT('s', "special-files", 0, "        treat special (block/char devices) files as\n"
46    "                             ordinary ones\n")
47OPT('C', "compile", 0, "              compile file specified by -m\n")
48OPT('d', "debug", 0, "                print debugging messages\n")
49