Fix options documentation.

* build-aux/cross-options.pl: As in --help output, write optional
arguments as [=ARG] not =[ARG].
* doc/bison.texinfo (Bison Options): Add -W/--warnings argument.
This commit is contained in:
Joel E. Denny
2009-04-06 02:16:39 -04:00
parent f67c40374e
commit ecd1b61cd4
3 changed files with 17 additions and 7 deletions

View File

@@ -28,9 +28,12 @@ while (<>)
# put each word in @var, to build @var{name}[=@var{value}], not
# @var{name[=value]}].
$arg =~ s/(\w+)/\@var{$1}/g;
$arg = '[' . $arg . ']'
if $opt eq '[';
$option{"$long=$arg"} = $short ? "$short $arg" : '';
my $long_arg = "=$arg";
if ($opt eq '[') {
$long_arg = "[$long_arg]";
$arg = "[$arg]";
}
$option{"$long$long_arg"} = $short ? "$short $arg" : '';
}
else
{