Make t/getopt.t parse '|' in GetOpt definitions
This commit is contained in:
parent
660569dffe
commit
cc64623752
17
t/getopt.t
17
t/getopt.t
@ -125,13 +125,18 @@ sub testFile
|
||||
#
|
||||
next if ( $o =~ /^[ \t]*$/ );
|
||||
|
||||
#
|
||||
# Now split at pipe
|
||||
#
|
||||
foreach my $osplit (split(/\|/, $o)) {
|
||||
|
||||
#
|
||||
# Phew. Now we're done.
|
||||
#
|
||||
# This option '$o' is something we call GetOptions with.
|
||||
#
|
||||
$accepted{$o} = 1;
|
||||
#
|
||||
# Phew. Now we're done.
|
||||
#
|
||||
# This option '$osplit' is something we call GetOptions with.
|
||||
#
|
||||
$accepted{$osplit} = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user