1*b6cee71dSXin LI /* 2*b6cee71dSXin LI * Table of command-line options 3*b6cee71dSXin LI * 4*b6cee71dSXin LI * The first column specifies the short name, if any, or 0 if none. 5*b6cee71dSXin LI * The second column specifies the long name. 6*b6cee71dSXin LI * The third column specifies whether it takes a parameter. 7*b6cee71dSXin LI * The fourth column is the documentation. 8*b6cee71dSXin LI * 9*b6cee71dSXin LI * N.B. The long options' order must correspond to the code in file.c, 10*b6cee71dSXin LI * and OPTSTRING must be kept up-to-date with the short options. 11*b6cee71dSXin LI * Pay particular attention to the numbers of long-only options in the 12*b6cee71dSXin LI * switch statement! 13*b6cee71dSXin LI */ 14*b6cee71dSXin LI 15*b6cee71dSXin LI OPT_LONGONLY("help", 0, " display this help and exit\n") 16*b6cee71dSXin LI OPT('v', "version", 0, " output version information and exit\n") 17*b6cee71dSXin LI OPT('m', "magic-file", 1, " LIST use LIST as a colon-separated list of magic\n" 18*b6cee71dSXin LI " number files\n") 19*b6cee71dSXin LI OPT('z', "uncompress", 0, " try to look inside compressed files\n") 20*b6cee71dSXin LI OPT('b', "brief", 0, " do not prepend filenames to output lines\n") 21*b6cee71dSXin LI OPT('c', "checking-printout", 0, " print the parsed form of the magic file, use in\n" 22*b6cee71dSXin LI " conjunction with -m to debug a new magic file\n" 23*b6cee71dSXin LI " before installing it\n") 24*b6cee71dSXin LI OPT('e', "exclude", 1, " TEST exclude TEST from the list of test to be\n" 25*b6cee71dSXin LI " performed for file. Valid tests are:\n" 26*b6cee71dSXin LI " %o\n") 27*b6cee71dSXin LI OPT('f', "files-from", 1, " FILE read the filenames to be examined from FILE\n") 28*b6cee71dSXin LI OPT('F', "separator", 1, " STRING use string as separator instead of `:'\n") 29*b6cee71dSXin LI OPT('i', "mime", 0, " output MIME type strings (--mime-type and\n" 30*b6cee71dSXin LI " --mime-encoding)\n") 31*b6cee71dSXin LI OPT_LONGONLY("apple", 0, " output the Apple CREATOR/TYPE\n") 32*b6cee71dSXin LI OPT_LONGONLY("mime-type", 0, " output the MIME type\n") 33*b6cee71dSXin LI OPT_LONGONLY("mime-encoding", 0, " output the MIME encoding\n") 34*b6cee71dSXin LI OPT('k', "keep-going", 0, " don't stop at the first match\n") 35*b6cee71dSXin LI OPT('l', "list", 0, " list magic strength\n") 36*b6cee71dSXin LI #ifdef S_IFLNK 37*b6cee71dSXin LI OPT('L', "dereference", 0, " follow symlinks (default)\n") 38*b6cee71dSXin LI OPT('h', "no-dereference", 0, " don't follow symlinks\n") 39*b6cee71dSXin LI #endif 40*b6cee71dSXin LI OPT('n', "no-buffer", 0, " do not buffer output\n") 41*b6cee71dSXin LI OPT('N', "no-pad", 0, " do not pad output\n") 42*b6cee71dSXin LI OPT('0', "print0", 0, " terminate filenames with ASCII NUL\n") 43*b6cee71dSXin LI #if defined(HAVE_UTIME) || defined(HAVE_UTIMES) 44*b6cee71dSXin LI OPT('p', "preserve-date", 0, " preserve access times on files\n") 45*b6cee71dSXin LI #endif 46*b6cee71dSXin LI OPT('r', "raw", 0, " don't translate unprintable chars to \\ooo\n") 47*b6cee71dSXin LI OPT('s', "special-files", 0, " treat special (block/char devices) files as\n" 48*b6cee71dSXin LI " ordinary ones\n") 49*b6cee71dSXin LI OPT('C', "compile", 0, " compile file specified by -m\n") 50*b6cee71dSXin LI OPT('d', "debug", 0, " print debugging messages\n") 51