Thread [Getopt::Long] meckert doppelte Options an (3 answers)
Opened by GwenDragon at 2011-11-08 18:55

GwenDragon
 2011-11-08 18:55
#154032 #154032
User since
2005-01-17
14562 Artikel
Admin1
[Homepage]
user image
Seit wann prüft CPAN:Getopt::Long Groß- und Kleinschreibung bei Kommdanozeilenoptionen?

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! perl -w

use strict;
use warnings;

use Getopt::Long;
my ( $quiet, $test, $alltype1, $debug, $destdir, $logfile, $help, $version );
GetOptions(
  'debug|verbose|v|d'         => \$debug,
  'test|t'                    => \$test,
  'all|a'                     => \$alltype1,
  'quiet|q'                   => \$quiet,
  'destination|outputdir|o=s' => \$destdir,
  'log|l'                                         => \$logfile,
  'help|h|?'                  => \$help,
  'Version|V'                => \$version
);

liefert beim Aufruf mit dem Parametern
Code: (dl )
-v test
folgendes:
Duplicate specification "Version|V" for option "v"
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread [Getopt::Long] meckert doppelte Options an