Getopt-EX
view release on metacpan or search on metacpan
lib/Getopt/EX/Module.pm view on Meta::CPAN
This is similar to string macro defined by following B<define>
command. But macro expantion is done by simple string replacement, so
you have to use B<expand> to define option composed by multiple
arguments.
=item B<define> I<name> I<string>
Define string macro. This is similar to B<option>, but argument is
not processed by I<shellwords> and treated just a simple text, so
meta-characters can be included without escape. Macro expansion is
done for option definition and other macro definition. Macro is not
evaluated in command line option. Use option directive if you want to
use in command line,
define (#kana) \p{InKatakana}
option --kanalist --nocolor -o --join --re '(#kana)+(\n(#kana)+)*'
help --kanalist List up Katakana string
Here-document can be used to define string inluding newlines.
define __script__ <<EOS
( run in 0.518 second using v1.01-cache-2.11-cpan-49f99fa48dc )