Home | History | Annotate | Download | only in Getopt

Lines Matching refs:an

47     $intRegexp   = '^[-+]?\d+$';               # Match an integer
119 # If 'help' was defined as an option, a new hash with just 'help' is
133 # If --help is an option, prints message saying 'Try --help'
149 # Prints an error message and exits.
157 # An optional string describing the problem
198 abortMsg("option `$option' does not take an argument")
202 # An argument is required for this option:
204 abortMsg("option `$option' requires an argument")
226 # Find a match for an incomplete long option:
268 # If $order is $RETURN_IN_ORDER, and this is a normal argument (not an
341 } # end if option takes an argument
420 Short options which do not take an argument can be grouped together.
421 Short options which do take an argument must be the last option in
436 Each description consists of the option name and an optional trailing
442 <none> option does not take an argument
448 The C<E<gt>> specifier is not really an argument specifier. It
449 defines an option as being a synonym for another option. For example,
450 "a=i apples>a" would define B<-a> as an option that requires an
461 -c and --charlie take an optional string argument
471 Short options may be combined ("-a -b" can be written "-ab"), but an
472 option that takes an argument must be the last one in its group,
476 dash by itself is treated as a normal argument, I<not> an option.
478 Long options may be abbreviated. An option B<--all-the-time> could be
481 option name. If an abbreviation is ambiguous, an error message will
486 B<--string> take string arguments. All other options do not take an
501 B<-i> and B<-f> will cause an error, because the null string is not a
518 If B<-a> is an option that doesn't take an argument, then C<$opt_a>
522 If B<-b> is an option that takes an argument, then C<$opt_b> will be
527 Note that even if you specify that an option I<requires> a string
557 Then, you keep calling nextOption until it returns an empty list.
563 the option does not take an argument. The option is stripped of its
565 want to print an error message, use the third element, which does
610 which isn't an option.
616 When nextOption is called, and the next argument is not an option, it
624 descriptions contain an upper-case letter.
632 A reference to a function that is called when an unrecognized option
646 The default is a function that prints an error message and exits the
662 The default is a function that prints an error message and exits the
669 A regular expression that matches an integer. Default is
670 '^[-+]?\d+$', which matches a string of digits preceded by an
679 "123", "123.", "123.45", and ".123" (plus an optional sign). It does
724 want your values pushed into an array, you'll have to use nextOption
742 real restriction is that you can't use Getopt::Mixed in an