Date: Wed, 2 Jul 2008 14:59:37 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 144490 for review Message-ID: <200807021459.m62ExbNZ047040@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=144490 Change 144490 by gabor@gabor_server on 2008/07/02 14:59:18 - -Add --help Affected files ... .. //depot/projects/soc2008/gabor_textproc/diff/diff.c#6 edit Differences ... ==== //depot/projects/soc2008/gabor_textproc/diff/diff.c#6 (text+ko) ==== @@ -53,6 +53,10 @@ struct excludes *excludes_list; regex_t ignore_re; +enum { + HELP_OPT = CHAR_MAX + 1 +}; + #define OPTIONS "0123456789abC:cdD:efhI:iL:lnNPpqrS:sTtU:uvwX:x:" static struct option longopts[] = { /* XXX: UNIMPLEMENTED @@ -70,8 +74,8 @@ { "from-file", required_argument, NULL, OPT_FFILE }, { "to-file", required_argument, NULL, OPT_TOFILE }, { "horizon-lines", required_argument, NULL, OPT_HLINES }, - { "speed-large-files", no_argument, NULL, OPT_LFILES }, - { "help", no_argument, NULL, OPT_HELP }, */ + { "speed-large-files", no_argument, NULL, OPT_LFILES }, */ + { "help", no_argument, NULL, HELP_OPT }, { "text", no_argument, NULL, 'a' }, /* XXX: UNIMPLEMENTED { "ignore-blank-lines", no_argument, NULL, 'B' }, */ @@ -243,6 +247,7 @@ case 'x': push_excludes(optarg); break; + case HELP_OPT: default: usage(); break;help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807021459.m62ExbNZ047040>
