no_argument
{ "reset-access-time", no_argument, 0, 'a' },
{ "make-directories", no_argument, 0, 'd' },
{ "nonmatching", no_argument, 0, 'f' },
{ "extract", no_argument, 0, 'i' },
{ "link", no_argument, 0, 'l' },
{ "preserve-modification-time", no_argument, 0, 'm' },
{ "create", no_argument, 0, 'o' },
{ "pass-through", no_argument, 0, 'p' },
{ "rename", no_argument, 0, 'r' },
{ "list", no_argument, 0, 't' },
{ "unconditional", no_argument, 0, 'u' },
{ "verbose", no_argument, 0, 'v' },
{ "append", no_argument, 0, 'A' },
{ "force-local", no_argument, 0,
{ "dereference", no_argument, 0, 'L' },
{ "swap-halfwords", no_argument, 0, 'S' },
{ "summary", no_argument, 0, 'V' },
{ "stats", no_argument, 0, 'V' },
{ "insecure", no_argument, 0,
{ "sparse", no_argument, 0,
{ "xz", no_argument, 0,
{ "null", no_argument, 0, '0' },
{ "swap", no_argument, 0, 'b' },
{ "numeric-uid-gid", no_argument, 0, 'n' },
{ "swap-bytes", no_argument, 0, 's' },
{ "dot", no_argument, 0, 'V' }, /* xxx */
{ "no-absolute-pathnames", no_argument, 0,
{ "no-preserve-owner", no_argument, 0,
{ "only-verify-crc", no_argument, 0,
{ "version", no_argument, 0,
{ "insecure", no_argument, 0,
{ "force-local", no_argument, 0,
{ "xz", no_argument, 0,
{ "gnu", no_argument, 0,
{ "bunzip2", no_argument, 0, 'j' },
{ "bzip2", no_argument, 0, 'j' },
{ "create", no_argument, 0, 'c' }, /* F */
{ "dereference", no_argument, 0, 'h' },
{ "keep-old-files", no_argument, 0, 'k' },
{ "one-file-system", no_argument, 0, 'l' },
{ "modification-time", no_argument, 0, 'm' },
{ "old-archive", no_argument, 0, 'o' },
{ "portability", no_argument, 0, 'o' },
{ "same-permissions", no_argument, 0, 'p' },
{ "preserve-permissions", no_argument, 0, 'p' },
{ "preserve", no_argument, 0, 'p' },
{ "fast-read", no_argument, 0, 'q' },
{ "append", no_argument, 0, 'r' }, /* F */
{ "update", no_argument, 0, 'u' }, /* F */
{ "list", no_argument, 0, 't' }, /* F */
{ "verbose", no_argument, 0, 'v' },
{ "interactive", no_argument, 0, 'w' },
{ "confirmation", no_argument, 0, 'w' },
{ "extract", no_argument, 0, 'x' }, /* F */
{ "get", no_argument, 0, 'x' }, /* F */
{ "gzip", no_argument, 0, 'z' },
{ "gunzip", no_argument, 0, 'z' },
{ "read-full-blocks", no_argument, 0, 'B' },
{ "xz", no_argument, 0, 'J' },
{ "to-stdout", no_argument, 0, 'O' },
{ "absolute-paths", no_argument, 0, 'P' },
{ "sparse", no_argument, 0, 'S' },
{ "summary", no_argument, 0, 'V' },
{ "stats", no_argument, 0, 'V' },
{ "compress", no_argument, 0, 'Z' },
{ "uncompress", no_argument, 0, 'Z' },
{ "strict", no_argument, 0,
{ "atime-preserve", no_argument, 0,
{ "unlink", no_argument, 0,
{ "force-local", no_argument, 0,
{ "insecure", no_argument, 0,
{ "no-recursion", no_argument, 0,
{ "chroot", no_argument, 0,
{ "catenate", no_argument, 0, 'A' }, /* F */
{ "concatenate", no_argument, 0, 'A' }, /* F */
{ "diff", no_argument, 0, 'd' }, /* F */
{ "compare", no_argument, 0, 'd' }, /* F */
{ "checkpoint", no_argument, 0,
{ "help", no_argument, 0,
{ "incremental", no_argument, 0, 'G' },
{ "ignore-zeros", no_argument, 0, 'i' },
{ "ignore-failed-read", no_argument, 0,
{ "starting-file", no_argument, 0, 'K' },
{ "multi-volume", no_argument, 0, 'M' },
{ "record-number", no_argument, 0, 'R' },
{ "remove-files", no_argument, 0,
{ "same-order", no_argument, 0, 's' },
{ "preserve-order", no_argument, 0, 's' },
{ "null", no_argument, 0,
{ "totals", no_argument, 0,
{ "version", no_argument, 0,
{ "verify", no_argument, 0, 'W' },
{ "block-compress", no_argument, 0,
if (long_options[match].has_arg == no_argument
#define _NA no_argument
longopts[nlongopts].has_arg = no_argument;
case no_argument:
{ "strip-trailing-cr", no_argument, NULL, OPT_STRIPCR },
{ "suppress-common-lines", no_argument, NULL, OPT_SUPPRESS_COMMON },
{ "text", no_argument, 0, 'a' },
{ "ignore-space-change", no_argument, 0, 'b' },
{ "minimal", no_argument, 0, 'd' },
{ "ed", no_argument, 0, 'e' },
{ "forward-ed", no_argument, 0, 'f' },
{ "speed-large-files", no_argument, NULL, 'H' },
{ "ignore-blank-lines", no_argument, 0, 'B' },
{ "ignore-case", no_argument, 0, 'i' },
{ "paginate", no_argument, NULL, 'l' },
{ "new-file", no_argument, 0, 'N' },
{ "rcs", no_argument, 0, 'n' },
{ "unidirectional-new-file", no_argument, 0, 'P' },
{ "show-c-function", no_argument, 0, 'p' },
{ "brief", no_argument, 0, 'q' },
{ "recursive", no_argument, 0, 'r' },
{ "report-identical-files", no_argument, 0, 's' },
{ "expand-tabs", no_argument, 0, 't' },
{ "initial-tab", no_argument, 0, 'T' },
{ "ignore-all-space", no_argument, 0, 'w' },
{ "side-by-side", no_argument, NULL, 'y' },
{ "ignore-file-name-case", no_argument, NULL, OPT_IGN_FN_CASE },
{ "no-ignore-file-name-case", no_argument, NULL, OPT_NO_IGN_FN_CASE },
{ "normal", no_argument, NULL, OPT_NORMAL },
{ "ed", no_argument, NULL, 'e' },
{ "show-overlap", no_argument, NULL, 'E' },
{ "overlap-only", no_argument, NULL, 'x' },
{ "initial-tab", no_argument, NULL, 'T' },
{ "text", no_argument, NULL, 'a' },
{ "strip-trailing-cr", no_argument, NULL, STRIPCR_OPT },
{ "show-all", no_argument, NULL, 'A' },
{ "easy-only", no_argument, NULL, '3' },
{ "merge", no_argument, NULL, 'm' },
{ "help", no_argument, NULL, HELP_OPT},
{ "version", no_argument, NULL, VERSION_OPT}
{ "debug", no_argument, 0, 'd' },
{ "help", no_argument, 0, 'h' },
{ "nonblock", no_argument, 0, 'n' },
{ "nb", no_argument, 0, 'n' },
{ "close", no_argument, 0, 'o' },
{ "shared", no_argument, 0, 's' },
{ "exclusive", no_argument, 0, 'x' },
{ "unlock", no_argument, 0, 'u' },
{ "verbose", no_argument, 0, 'v' },
{ "help", no_argument, NULL, 'h' },
{"decompress", no_argument, NULL, DECOMPRESS_OPT},
{"help", no_argument, NULL, HELP_OPT},
{"mmap", no_argument, NULL, MMAP_OPT},
{"line-buffered", no_argument, NULL, LINEBUF_OPT},
{"text", no_argument, NULL, 'a'},
{"byte-offset", no_argument, NULL, 'b'},
{"count", no_argument, NULL, 'c'},
{"extended-regexp", no_argument, NULL, 'E'},
{"fixed-strings", no_argument, NULL, 'F'},
{"basic-regexp", no_argument, NULL, 'G'},
{"no-filename", no_argument, NULL, 'h'},
{"with-filename", no_argument, NULL, 'H'},
{"ignore-case", no_argument, NULL, 'i'},
{"bz2decompress", no_argument, NULL, 'J'},
{"files-with-matches", no_argument, NULL, 'l'},
{"files-without-match", no_argument, NULL, 'L'},
{"line-number", no_argument, NULL, 'n'},
{"only-matching", no_argument, NULL, 'o'},
{"quiet", no_argument, NULL, 'q'},
{"silent", no_argument, NULL, 'q'},
{"recursive", no_argument, NULL, 'r'},
{"no-messages", no_argument, NULL, 's'},
{"binary", no_argument, NULL, 'U'},
{"unix-byte-offsets", no_argument, NULL, 'u'},
{"invert-match", no_argument, NULL, 'v'},
{"version", no_argument, NULL, 'V'},
{"word-regexp", no_argument, NULL, 'w'},
{"line-regexp", no_argument, NULL, 'x'},
{"null", no_argument, NULL, 'Z'},
{"null-data", no_argument, NULL, 'z'},
{NULL, no_argument, NULL, 0}
{ "stdout", no_argument, 0, 'c' },
{ "to-stdout", no_argument, 0, 'c' },
{ "decompress", no_argument, 0, 'd' },
{ "uncompress", no_argument, 0, 'd' },
{ "force", no_argument, 0, 'f' },
{ "help", no_argument, 0, 'h' },
{ "keep", no_argument, 0, 'k' },
{ "list", no_argument, 0, 'l' },
{ "no-name", no_argument, 0, 'n' },
{ "name", no_argument, 0, 'N' },
{ "quiet", no_argument, 0, 'q' },
{ "recursive", no_argument, 0, 'r' },
{ "test", no_argument, 0, 't' },
{ "verbose", no_argument, 0, 'v' },
{ "version", no_argument, 0, 'V' },
{ "fast", no_argument, 0, '1' },
{ "best", no_argument, 0, '9' },
{ "ascii", no_argument, 0, 'a' },
{ "license", no_argument, 0, 'L' },
{ NULL, no_argument, 0, 0 },
{ "fatal-warnings", no_argument, 0, 'E' },
{ "gnu", no_argument, 0, 'g' },
{ "help", no_argument, 0, OPT_HELP },
{ "interactive", no_argument, 0, 'i' },
{ "prefix-builtins", no_argument, 0, 'P' },
{ "quiet", no_argument, 0, 'Q' },
{ "silent", no_argument, 0, 'Q' },
{ "synclines", no_argument, 0, 's' },
{ "traditional", no_argument, 0, 'G' },
{ "version", no_argument, 0, 'v' },
{"backup", no_argument, 0, 'b'},
{"backup-if-mismatch", no_argument, &backup_if_mismatch, 1},
{"batch", no_argument, 0, 't'},
{"check", no_argument, 0, 'C'},
{"context", no_argument, 0, 'c'},
{"ed", no_argument, 0, 'e'},
{"force", no_argument, 0, 'f'},
{"forward", no_argument, 0, 'N'},
{"ignore-whitespace", no_argument, 0, 'l'},
{"no-backup-if-mismatch", no_argument, &backup_if_mismatch, 0},
{"normal", no_argument, 0, 'n'},
{"quiet", no_argument, 0, 's'},
{"remove-empty-files", no_argument, 0, 'E'},
{"reverse", no_argument, 0, 'R'},
{"silent", no_argument, 0, 's'},
{"unified", no_argument, 0, 'u'},
{"version", no_argument, 0, 'v'},
{"posix", no_argument, &posix, 1},
{ "text", no_argument, NULL, 'a' },
{ "ignore-blank-lines", no_argument, NULL, 'B' },
{ "ignore-space-change", no_argument, NULL, 'b' },
{ "minimal", no_argument, NULL, 'd' },
{ "ignore-tab-expansion", no_argument, NULL, 'E' },
{ "speed-large-files", no_argument, NULL, 'H' },
{ "left-column", no_argument, NULL, 'l' },
{ "strip-trailing-cr", no_argument, NULL, 'S' },
{ "suppress-common-lines", no_argument, NULL, 's' },
{ "expand-tabs", no_argument, NULL, 't' },
{ "ignore-all-space", no_argument, NULL, 'W' },
{ "preserve-status", no_argument, NULL, 'p'},
{ "foreground", no_argument, NULL, 'f'},
{ "help", no_argument, NULL, 'h'},
{ "help", no_argument, &helpme, 1 },
{ "halfduplex", no_argument, NULL, 'h' },
{ "nostop", no_argument, &nostop, 1 },