App-optex
view release on metacpan or search on metacpan
This can be used like:
% date -Mi18n --tw
2017å¹´10æ22æ¥ é±æ¥ 18æ00å00ç§ JST
You can declare autoload module in your `~/.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
`--ru` is replaced by `-Mi18n --ru` automatically.
% date --ru
воÑкÑеÑенÑе, 22 окÑÑбÑÑ 2017 г. 18:00:00 (JST)
Module `i18n` is implemented as [Getopt::EX::i18n](https://metacpan.org/pod/Getopt%3A%3AEX%3A%3Ai18n) and included in
this distribution. So it can be used as above without additional
installation.
# STANDARD MODULES
Standard modules are installed at `App::optex`, and they can be
addressed with and without `App::optex` prefix.
- -M**help**
Print available option list. Option name is printed with substitution
form, or help message if defined. Use **-x** option to omit help
message.
Option **--man** or **-h** will print document if available. Option
**-l** will print module path. Option **-m** will show the module
itself. When used after other modules, print information about the
last declared module. Next command show the document about **second**
module.
optex -Mfirst -Msecond -Mhelp --man
- -M**debug**
Print debug messages.
- -M**util::argv**
Module to manipulate command argument.
See [App::optex::util::argv](https://metacpan.org/pod/App%3A%3Aoptex%3A%3Autil%3A%3Aargv) for detail.
- -M**util::filter**
Module to implement command input/output filters.
See [App::optex::util::filter](https://metacpan.org/pod/App%3A%3Aoptex%3A%3Autil%3A%3Afilter) for detail.
# Getopt::EX MODULES
In addition to its own modules, **optex** can also use `Getopt::EX`
modules. The standard `Getopt::EX` modules installed are these.
- -M**i18n** ([Getopt::EX::i18n](https://metacpan.org/pod/Getopt%3A%3AEX%3A%3Ai18n))
You can display a Greek calendar by doing the following:
optex -Mi18n cal --gr
# OPTIONS
These options are not effective when **optex** was executed from
symbolic link.
- **--link**, **--ln** \[ _command_ \]
Create symbolic link in `~/.optex.d/bin` directory.
- **--unlink**, **--rm** \[ **-f** \] \[ _command_ \]
Remove symbolic link in `~/.optex.d/bin` directory.
- **--ls** \[ **-l** \] \[ _command_ \]
List symbolic link files in `~/.optex.d/bin` directory.
- **--rc** \[ **-l** \] \[ **-m** \] \[ _command_ \]
List rc files in `~/.optex.d` directory.
- **--nop**, **-x** _command_
Stop option manipulation. Use full pathname otherwise.
- **--**\[**no**\]**module**
**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 **--nomodule** disables that behavior. Other option
interpretation is still effective, and there is no problem using
module option in rc or module files.
- **--exit** _status_
Usually **optex** exits with status of executed command. This option
override it and force to exit with specified status code.
# CONFIGURATION FILE
When starting up, **optex** reads configuration file
`~/.optex.d/config.toml` which is supposed to be written in TOML
format.
## PARAMETERS
- **no-module**
Set commands for which **optex** does not interpret module option
**-M**. If the target command is found in this list, it is executed as
if option **--no-module** is given to **optex**.
no-module = [
"greple",
"pgrep",
]
( run in 1.884 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )