file_opts.h revision 277592
194742Sobrien/*
294742Sobrien * Table of command-line options
394742Sobrien *
495253Sru * The first column specifies the short name, if any, or 0 if none.
594742Sobrien * The second column specifies the long name.
694772Simp * The third column specifies whether it takes a parameter.
794772Simp * The fourth column is the documentation.
894772Simp *
994844Srwatson * N.B. The long options' order must correspond to the code in file.c,
1094854Ssos * and OPTSTRING must be kept up-to-date with the short options.
1194917Simp * Pay particular attention to the numbers of long-only options in the
1294917Simp * switch statement!
1394917Simp */
1494917Simp
1594845SmarkmOPT_LONGONLY("help", 0, "                 display this help and exit\n")
1694845SmarkmOPT('v', "version", 0, "              output version information and exit\n")
1794845SmarkmOPT('m', "magic-file", 1, " LIST      use LIST as a colon-separated list of magic\n"
1894845Smarkm    "                               number files\n")
1994845SmarkmOPT('z', "uncompress", 0, "           try to look inside compressed files\n")
2095382SrnordierOPT('b', "brief", 0, "                do not prepend filenames to output lines\n")
2194847SjhbOPT('c', "checking-printout", 0, "    print the parsed form of the magic file, use in\n"
2294847Sjhb    "                               conjunction with -m to debug a new magic file\n"
2394847Sjhb    "                               before installing it\n")
2494849SphkOPT('e', "exclude", 1, " TEST         exclude TEST from the list of test to be\n"
2594849Sphk    "                               performed for file. Valid tests are:\n"
2694849Sphk    "                               %o\n")
2794849SphkOPT('f', "files-from", 1, " FILE      read the filenames to be examined from FILE\n")
2894849SphkOPT('F', "separator", 1, " STRING     use string as separator instead of `:'\n")
2994849SphkOPT('i', "mime", 0, "                 output MIME type strings (--mime-type and\n"
3094849Sphk    "                               --mime-encoding)\n")
3194849SphkOPT_LONGONLY("apple", 0, "                output the Apple CREATOR/TYPE\n")
3294855SscottlOPT_LONGONLY("mime-type", 0, "            output the MIME type\n")
3394855SscottlOPT_LONGONLY("mime-encoding", 0, "        output the MIME encoding\n")
3494902SbennoOPT('k', "keep-going", 0, "           don't stop at the first match\n")
3594915SkenOPT('l', "list", 0, "                 list magic strength\n")
3694915Sken#ifdef S_IFLNK
3794920SmjacobOPT('L', "dereference", 0, "          follow symlinks (default)\n")
3894915SkenOPT('h', "no-dereference", 0, "       don't follow symlinks\n")
3994915Sken#endif
4094915SkenOPT('n', "no-buffer", 0, "            do not buffer output\n")
4194915SkenOPT('N', "no-pad", 0, "               do not pad output\n")
4294915SkenOPT('0', "print0", 0, "               terminate filenames with ASCII NUL\n")
4394915Sken#if defined(HAVE_UTIME) || defined(HAVE_UTIMES)
4494915SkenOPT('p', "preserve-date", 0, "        preserve access times on files\n")
4594915Sken#endif
4694920SmjacobOPT('P', "parameter", 0, "            set file engine parameter limits\n"
4794920Smjacob    "                               indir        15 recursion limit for indirection\n"
4894920Smjacob    "                               name         30 use limit for name/use magic\n"
4995347Scokane    "                               elf_notes   256 max ELF notes processed\n"
5094918Sgshapiro    "                               elf_phnum   128 max ELF prog sections processed\n"
5194918Sgshapiro    "                               elf_shnum 32768 max ELF sections processed\n")
5294918SgshapiroOPT('r', "raw", 0, "                  don't translate unprintable chars to \\ooo\n")
5394918SgshapiroOPT('s', "special-files", 0, "        treat special (block/char devices) files as\n"
5494918Sgshapiro    "                             ordinary ones\n")
5594955SmurrayOPT('C', "compile", 0, "              compile file specified by -m\n")
5694955SmurrayOPT('d', "debug", 0, "                print debugging messages\n")
5795054Snectar