Skip to content

Commit

Permalink
make the option "--version" optional
Browse files Browse the repository at this point in the history
  • Loading branch information
gerd committed Jan 14, 2011
1 parent e0df021 commit 0297b0a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tools/docs/make_html_docs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ =head1 NAME
=head1 SYNOPSIS
% perl tools/docs/make_html_docs.pl --version
% perl tools/docs/make_html_docs.pl [--version=VERSION]
=head1 DESCRIPTION
Expand All @@ -33,11 +33,9 @@ =head1 DESCRIPTION
use Parrot::Docs::PodToHtml;
use Parrot::Docs::HTMLPage;

my ( $version );
my $version='';

die unless GetOptions( 'version=s' => \$version );

die "Usage: $0 --version\n" unless $version;
GetOptions( 'version=s' => \$version );

my $target_dir = 'docs/html';
my $resource_dir = '../resources';
Expand Down

0 comments on commit 0297b0a

Please sign in to comment.