The man page documented the prefix option as -prefix; compile_et
supported only the short form -p.
Document and support both the long and short forms for the prefix
option; -p and -prefix.
Change-Id: Ide5551b06ae888748600677ed09ba674506a584f
Reviewed-on: http://gerrit.openafs.org/10721
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
=item B<-prefix> <I<prefix>>
Specifies the directory to search for the F<error_table.et> file.
+The B<-p> <I<prefix>> option is a synonym for B<-prefix> <I<prefix>>.
=item B<-v> <I<version>>
0,
};
+static const char *const prefix_args[] = {
+ "p",
+ "prefix",
+ 0,
+};
+
static const char *const language_names[] = {
"C",
"K&R C",
if (!arg)
usage();
got_include = arg;
- } else if (strcmp(arg, "p") == 0) {
+ } else if (check_arg(prefix_args, arg)) {
arg = *++argv;
argc--;
if (!arg)