PERFORCE change 144490 for review
Gabor Kovesdan
gabor at FreeBSD.org
Wed Jul 2 14:59:38 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=144490
Change 144490 by gabor at 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;
More information about the p4-projects
mailing list