1b6cee71dSXin LI /* 2b6cee71dSXin LI * Table of command-line options 3b6cee71dSXin LI * 4b6cee71dSXin LI * The first column specifies the short name, if any, or 0 if none. 5b6cee71dSXin LI * The second column specifies the long name. 6b6cee71dSXin LI * The third column specifies whether it takes a parameter. 7*d38c30c0SXin LI * The fourth colums specifies whether is is marked as "default" 8*d38c30c0SXin LI * if POSIXLY_CORRECT is defined: 1, 9*d38c30c0SXin LI * if POSIXLY_CORRECT is not defined: 2. 10*d38c30c0SXin LI * The fifth column is the documentation. 11b6cee71dSXin LI * 12b6cee71dSXin LI * N.B. The long options' order must correspond to the code in file.c, 13b6cee71dSXin LI * and OPTSTRING must be kept up-to-date with the short options. 14b6cee71dSXin LI * Pay particular attention to the numbers of long-only options in the 15b6cee71dSXin LI * switch statement! 16b6cee71dSXin LI */ 17b6cee71dSXin LI 183e41d09dSXin LI OPT_LONGONLY("help", 0, 0, " display this help and exit\n", OPT_HELP) 193e41d09dSXin LI OPT('v', "version", 0, 0, " output version information and exit\n") 203e41d09dSXin LI OPT('m', "magic-file", 1, 0, " LIST use LIST as a colon-separated list of magic\n" 21b6cee71dSXin LI " number files\n") 223e41d09dSXin LI OPT('z', "uncompress", 0, 0, " try to look inside compressed files\n") 233e41d09dSXin LI OPT('Z', "uncompress-noreport", 0, 0, " only print the contents of compressed files\n") 243e41d09dSXin LI OPT('b', "brief", 0, 0, " do not prepend filenames to output lines\n") 253e41d09dSXin LI OPT('c', "checking-printout", 0, 0, " print the parsed form of the magic file, use in\n" 26b6cee71dSXin LI " conjunction with -m to debug a new magic file\n" 27b6cee71dSXin LI " before installing it\n") 283e41d09dSXin LI OPT('e', "exclude", 1, 0, " TEST exclude TEST from the list of test to be\n" 29b6cee71dSXin LI " performed for file. Valid tests are:\n" 30b6cee71dSXin LI " %o\n") 313e41d09dSXin LI OPT('f', "files-from", 1, 0, " FILE read the filenames to be examined from FILE\n") 323e41d09dSXin LI OPT('F', "separator", 1, 0, " STRING use string as separator instead of `:'\n") 333e41d09dSXin LI OPT('i', "mime", 0, 0, " output MIME type strings (--mime-type and\n" 34b6cee71dSXin LI " --mime-encoding)\n") 353e41d09dSXin LI OPT_LONGONLY("apple", 0, 0, " output the Apple CREATOR/TYPE\n", OPT_APPLE) 363e41d09dSXin LI OPT_LONGONLY("extension", 0, 0, " output a slash-separated list of extensions\n", OPT_EXTENSIONS) 373e41d09dSXin LI OPT_LONGONLY("mime-type", 0, 0, " output the MIME type\n", OPT_MIME_TYPE) 383e41d09dSXin LI OPT_LONGONLY("mime-encoding", 0, 0, " output the MIME encoding\n", OPT_MIME_ENCODING) 393e41d09dSXin LI OPT('k', "keep-going", 0, 0, " don't stop at the first match\n") 403e41d09dSXin LI OPT('l', "list", 0, 0, " list magic strength\n") 41b6cee71dSXin LI #ifdef S_IFLNK 423e41d09dSXin LI OPT('L', "dereference", 0, 1, " follow symlinks") 433e41d09dSXin LI OPT('h', "no-dereference", 0, 2, " don't follow symlinks") 44b6cee71dSXin LI #endif 453e41d09dSXin LI OPT('n', "no-buffer", 0, 0, " do not buffer output\n") 463e41d09dSXin LI OPT('N', "no-pad", 0, 0, " do not pad output\n") 473e41d09dSXin LI OPT('0', "print0", 0, 0, " terminate filenames with ASCII NUL\n") 48b6cee71dSXin LI #if defined(HAVE_UTIME) || defined(HAVE_UTIMES) 493e41d09dSXin LI OPT('p', "preserve-date", 0, 0, " preserve access times on files\n") 50b6cee71dSXin LI #endif 513e41d09dSXin LI OPT('P', "parameter", 1, 0, " set file engine parameter limits\n" 524460e5b0SXin LI " indir 15 recursion limit for indirection\n" 534460e5b0SXin LI " name 30 use limit for name/use magic\n" 544460e5b0SXin LI " elf_notes 256 max ELF notes processed\n" 554460e5b0SXin LI " elf_phnum 128 max ELF prog sections processed\n" 564460e5b0SXin LI " elf_shnum 32768 max ELF sections processed\n") 573e41d09dSXin LI OPT('r', "raw", 0, 0, " don't translate unprintable chars to \\ooo\n") 583e41d09dSXin LI OPT('s', "special-files", 0, 0, " treat special (block/char devices) files as\n" 59b6cee71dSXin LI " ordinary ones\n") 6058a0f0d0SEitan Adler OPT('S', "no-sandbox", 0, 0, " disable system call sandboxing\n") 613e41d09dSXin LI OPT('C', "compile", 0, 0, " compile file specified by -m\n") 623e41d09dSXin LI OPT('d', "debug", 0, 0, " print debugging messages\n") 63