summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny@ces.clemson.edu>2009-04-06 02:16:39 -0400
committerJoel E. Denny <jdenny@ces.clemson.edu>2009-04-06 02:54:38 -0400
commitecd1b61cd4998286c42ce9f1555167af73024156 (patch)
tree81650c6b04313cb42e9ba8bf339d18ff492421e0 /build-aux
parentf67c40374e6d6d02da9e43f88606b658ec2fb526 (diff)
downloadbison-ecd1b61cd4998286c42ce9f1555167af73024156.tar.gz
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.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/cross-options.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/build-aux/cross-options.pl b/build-aux/cross-options.pl
index 2cec3696..58772775 100755
--- a/build-aux/cross-options.pl
+++ b/build-aux/cross-options.pl
@@ -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
{