1284194Sdelphij/* 2284194Sdelphij * Table of command-line options 3284194Sdelphij * 4284194Sdelphij * The first column specifies the short name, if any, or 0 if none. 5284194Sdelphij * The second column specifies the long name. 6284194Sdelphij * The third column specifies whether it takes a parameter. 7284194Sdelphij * The fourth column is the documentation. 8284194Sdelphij * 9284194Sdelphij * N.B. The long options' order must correspond to the code in file.c, 10284194Sdelphij * and OPTSTRING must be kept up-to-date with the short options. 11284194Sdelphij * Pay particular attention to the numbers of long-only options in the 12284194Sdelphij * switch statement! 13284194Sdelphij */ 14284194Sdelphij 15284194SdelphijOPT_LONGONLY("help", 0, " display this help and exit\n") 16284194SdelphijOPT('v', "version", 0, " output version information and exit\n") 17284194SdelphijOPT('m', "magic-file", 1, " LIST use LIST as a colon-separated list of magic\n" 18284194Sdelphij " number files\n") 19284194SdelphijOPT('z', "uncompress", 0, " try to look inside compressed files\n") 20284194SdelphijOPT('b', "brief", 0, " do not prepend filenames to output lines\n") 21284194SdelphijOPT('c', "checking-printout", 0, " print the parsed form of the magic file, use in\n" 22284194Sdelphij " conjunction with -m to debug a new magic file\n" 23284194Sdelphij " before installing it\n") 24284194SdelphijOPT('e', "exclude", 1, " TEST exclude TEST from the list of test to be\n" 25284194Sdelphij " performed for file. Valid tests are:\n" 26284194Sdelphij " %o\n") 27284194SdelphijOPT('f', "files-from", 1, " FILE read the filenames to be examined from FILE\n") 28284194SdelphijOPT('F', "separator", 1, " STRING use string as separator instead of `:'\n") 29284194SdelphijOPT('i', "mime", 0, " output MIME type strings (--mime-type and\n" 30284194Sdelphij " --mime-encoding)\n") 31284194SdelphijOPT_LONGONLY("apple", 0, " output the Apple CREATOR/TYPE\n") 32284194SdelphijOPT_LONGONLY("mime-type", 0, " output the MIME type\n") 33284194SdelphijOPT_LONGONLY("mime-encoding", 0, " output the MIME encoding\n") 34284194SdelphijOPT('k', "keep-going", 0, " don't stop at the first match\n") 35284194SdelphijOPT('l', "list", 0, " list magic strength\n") 36284194Sdelphij#ifdef S_IFLNK 37284194SdelphijOPT('L', "dereference", 0, " follow symlinks (default)\n") 38284194SdelphijOPT('h', "no-dereference", 0, " don't follow symlinks\n") 39284194Sdelphij#endif 40284194SdelphijOPT('n', "no-buffer", 0, " do not buffer output\n") 41284194SdelphijOPT('N', "no-pad", 0, " do not pad output\n") 42284194SdelphijOPT('0', "print0", 0, " terminate filenames with ASCII NUL\n") 43284194Sdelphij#if defined(HAVE_UTIME) || defined(HAVE_UTIMES) 44284194SdelphijOPT('p', "preserve-date", 0, " preserve access times on files\n") 45284194Sdelphij#endif 46284194SdelphijOPT('P', "parameter", 0, " set file engine parameter limits\n" 47284194Sdelphij " indir 15 recursion limit for indirection\n" 48284194Sdelphij " name 30 use limit for name/use magic\n" 49284194Sdelphij " elf_notes 256 max ELF notes processed\n" 50284194Sdelphij " elf_phnum 128 max ELF prog sections processed\n" 51284194Sdelphij " elf_shnum 32768 max ELF sections processed\n") 52284194SdelphijOPT('r', "raw", 0, " don't translate unprintable chars to \\ooo\n") 53284194SdelphijOPT('s', "special-files", 0, " treat special (block/char devices) files as\n" 54284194Sdelphij " ordinary ones\n") 55284194SdelphijOPT('C', "compile", 0, " compile file specified by -m\n") 56284194SdelphijOPT('d', "debug", 0, " print debugging messages\n") 57