You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the "repeat" syntax documented here to allow multiple values per argument only an error message like Cannot repeat while bundling: "multiple-values=s@{1,}" is printed.
Example:
#!/bin/perl
use warnings;
use strict;
use Getopt::Long::Descriptive;
my ($opt, $usage) = describe_options(
'test %o',
['multiple-values=s@{1,}', 'can have many values', {required => 1}],
['help', 'prints help', {shortcircuit => 1}],
);
print $usage->text and exit if $opt->help;
I would have assumed that $opt->multiple_values would return an array ref in this case.
The text was updated successfully, but these errors were encountered:
When using the "repeat" syntax documented here to allow multiple values per argument only an error message like
Cannot repeat while bundling: "multiple-values=s@{1,}"
is printed.Example:
I would have assumed that
$opt->multiple_values
would return an array ref in this case.The text was updated successfully, but these errors were encountered: