App-optex
view release on metacpan or search on metacpan
script/optex view on Meta::CPAN
You can declare autoload module in your F<~/.optex.d/optex.rc> like:
autoload -Mi18n --cn --tw --us --fr --de --it --jp --kr --br --es --ru
Then you can use them without module option. In this case, option
C<--ru> is replaced by C<-Mi18n --ru> automatically.
% date --ru
воÑкÑеÑенÑе, 22 окÑÑбÑÑ 2017 г. 18:00:00 (JST)
Module C<i18n> is implemented as L<Getopt::EX::i18n> and included in
this distribution. So it can be used as above without additional
installation.
=head1 STANDARD MODULES
Standard modules are installed at C<App::optex>, and they can be
addressed with and without C<App::optex> prefix.
=over 4
=item -MB<help>
Print available option list. Option name is printed with substitution
form, or help message if defined. Use B<-x> option to omit help
message.
Option B<--man> or B<-h> will print document if available. Option
B<-l> will print module path. Option B<-m> will show the module
itself. When used after other modules, print information about the
last declared module. Next command show the document about B<second>
module.
optex -Mfirst -Msecond -Mhelp --man
=item -MB<debug>
Print debug messages.
=item -MB<util::argv>
Module to manipulate command argument.
See L<App::optex::util::argv> for detail.
=item -MB<util::filter>
Module to implement command input/output filters.
See L<App::optex::util::filter> for detail.
=back
=head1 Getopt::EX MODULES
In addition to its own modules, B<optex> can also use C<Getopt::EX>
modules. The standard C<Getopt::EX> modules installed are these.
=over 4
=item -MB<i18n> (L<Getopt::EX::i18n>)
You can display a Greek calendar by doing the following:
optex -Mi18n cal --gr
=back
=head1 OPTIONS
These options are not effective when B<optex> was executed from
symbolic link.
=over 4
=item B<--link>, B<--ln> [ I<command> ]
Create symbolic link in F<~/.optex.d/bin> directory.
=item B<--unlink>, B<--rm> [ B<-f> ] [ I<command> ]
Remove symbolic link in F<~/.optex.d/bin> directory.
=item B<--ls> [ B<-l> ] [ I<command> ]
List symbolic link files in F<~/.optex.d/bin> directory.
=item B<--rc> [ B<-l> ] [ B<-m> ] [ I<command> ]
List rc files in F<~/.optex.d> directory.
=item B<--nop>, B<-x> I<command>
Stop option manipulation. Use full pathname otherwise.
=item B<-->[B<no>]B<module>
B<optex> deals with module option (-M) on target command by default.
However, there is a command which also uses same option for own
purpose. Option B<--nomodule> disables that behavior. Other option
interpretation is still effective, and there is no problem using
module option in rc or module files.
=item B<--exit> I<status>
Usually B<optex> exits with status of executed command. This option
override it and force to exit with specified status code.
=back
=head1 CONFIGURATION FILE
When starting up, B<optex> reads configuration file
F<~/.optex.d/config.toml> which is supposed to be written in TOML
( run in 1.999 second using v1.01-cache-2.11-cpan-39bf76dae61 )