From: Sven Schöling Date: Wed, 28 Sep 2011 11:24:48 +0000 (+0200) Subject: Getopt: zwei boolean auf die gleiche Variable funktioniert nicht. X-Git-Tag: release-2.7.0beta1~256 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=31c298212f2e2e2e9884675ae65a1803277cc368;p=kivitendo-erp.git Getopt: zwei boolean auf die gleiche Variable funktioniert nicht. --- diff --git a/scripts/rose_auto_create_model.pl b/scripts/rose_auto_create_model.pl index 7793d6096..c99a4b996 100755 --- a/scripts/rose_auto_create_model.pl +++ b/scripts/rose_auto_create_model.pl @@ -161,14 +161,13 @@ CODE sub parse_args { my ($options) = @_; GetOptions( - 'login|user=s' => \ my $login, - all => \ my $all, - sugar => \ my $sugar, - 'no-commit' => \ my $nocommit, - 'dry-run' => \ my $nocommit, - help => sub { pod2usage(verbose => 99, sections => 'NAME|SYNOPSIS|OPTIONS') }, - verbose => \ my $verbose, - diff => \ my $diff, + 'login|user=s' => \ my $login, + all => \ my $all, + sugar => \ my $sugar, + 'no-commit|dry-run' => \ my $nocommit, + help => sub { pod2usage(verbose => 99, sections => 'NAME|SYNOPSIS|OPTIONS') }, + verbose => \ my $verbose, + diff => \ my $diff, ); $options->{login} = $login if $login;