Getopt-Guided
view release on metacpan or search on metacpan
lib/Getopt/Guided.pod view on Meta::CPAN
=head1 DEFAULT OPTIONS
The C<readopts( \@ )> function reads default command-line options from a
rcfile and prepends them to the command-line arguments list C<@argv>. This
function is usually called immediately before the C<processopts()> function.
The basename of the rcfile is the program name with the
extension C<rc>. The dirname of the rcfile is defined by the
environment variable XDG_CONFIG_HOME (L<XDG Base Directory
Specification|https://specifications.freedesktop.org/basedir/latest/>).
The rcfile must contain one option per line. This implies that options must
not be grouped. Each line is either a simple flag name or an option name
followed by a space character and an option-argument value. Neither the
flag name nor the option name should start with the option delimiter (C<->).
Option-argument values should not be quoted even if they include spaces.
Example rcfile content:
# verbose
v
( run in 1.939 second using v1.01-cache-2.11-cpan-df04353d9ac )