Skip to content

Commit

Permalink
[Configure] change option name to --gen-parrot-option.
Browse files Browse the repository at this point in the history
Also minor related cleanups

Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
Geoffry Broadwell authored and moritz committed Apr 4, 2009
1 parent 2fb96f8 commit db0dd4f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Configure.pl
Expand Up @@ -8,7 +8,8 @@

MAIN: {
my %options;
GetOptions(\%options, 'help!', 'parrot-config=s', 'gen-parrot!', 'parrot-opt=s@');
GetOptions(\%options, 'help!', 'parrot-config=s',
'gen-parrot!', 'gen-parrot-option=s@');

# Print help if it's requested
if ($options{'help'}) {
Expand All @@ -18,7 +19,7 @@

# Update/generate parrot build if needed
if ($options{'gen-parrot'}) {
my @opts = $options{'parrot-opt'} ? @{$options{'parrot-opt'}} : ();
my @opts = @{ $options{'gen-parrot-option'} || [] };
my @command = ($^X, "build/gen_parrot.pl", @opts);

print "Generating Parrot ...\n";
Expand Down Expand Up @@ -127,10 +128,10 @@ sub print_help {
General Options:
--help Show this text
--gen-parrot Download and build a copy of Parrot to use
--gen-parrot-option='--option=value'
Set parrot config option when using --gen-parrot
--parrot-config=(config)
Use configuration information from config
--parrot-opt='--option=value'
Set parrot config option when using --gen-parrot
END

return;
Expand Down

0 comments on commit db0dd4f

Please sign in to comment.