mirror of
https://github.com/flynx/argv.js.git
synced 2025-12-18 17:41:40 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d6c676ba91
commit
1126063a7f
18
README.md
18
README.md
@ -16,7 +16,7 @@ This code is an evolution of that parser.
|
|||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Simple
|
- Simple
|
||||||
- Supports both the _option_ (a-la `find`) and _command_ (a-la `git`) paradigms
|
- Supports both the _option_ (a-la `ls`) and _command_ (a-la `git`) paradigms
|
||||||
- Nestable
|
- Nestable
|
||||||
parsers can be nested as option/command handlers defining independent
|
parsers can be nested as option/command handlers defining independent
|
||||||
nested contexts
|
nested contexts
|
||||||
@ -25,21 +25,21 @@ This code is an evolution of that parser.
|
|||||||
- Option/command value passing
|
- Option/command value passing
|
||||||
implicit `-a 123` (requires definition or manual handling) or explicit
|
implicit `-a 123` (requires definition or manual handling) or explicit
|
||||||
`-a=123`
|
`-a=123`
|
||||||
- Environment variable option/command values
|
- Environment variable option/command value defaults
|
||||||
env can control option defaults
|
- Multiple option prefix support
|
||||||
- Reasonable defaults
|
- Reasonable defaults:
|
||||||
- `-help` – generate and print help,
|
- `-help` – generate and print help
|
||||||
- `-version` – print version,
|
- `-version` – print version
|
||||||
- `-` – stop argument processing,
|
- `-` – stop argument processing
|
||||||
- Extensible:
|
- Extensible:
|
||||||
- Hooks for option value conversion _(XXX should this be implemented???)_
|
- Hooks for option value conversion
|
||||||
- Hooks for dynamic option/command handling
|
- Hooks for dynamic option/command handling
|
||||||
- Customizable error and stop condition handling
|
- Customizable error and stop condition handling
|
||||||
|
|
||||||
## Planned Features
|
## Planned Features
|
||||||
|
|
||||||
- Run `<command>-<sub-command>` scripts
|
- Run `<command>-<sub-command>` scripts
|
||||||
- Multiple option prefix support
|
- Option grouping
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user