app
A easy-to-use command-line-parser written for Rust.
Usage
Cargo.toml
[]
= "0.6.1"
Or
[]
= { = "https://github.com/biluohc/app", = "master", = "0.6.1" }
Documentation
- Visit Docs.rs
Or
- Run
cargo doc --open
after modified the toml file.
Examples
- fht2p: Options and Args
- cp: Options and Multi Args
- cpfn: Options, Multi Args and the help funcions.
- zipcs:
Sub_Commands, OptValue and OptValueParse
http
: Option's order in help message
- cargo-http: Custom
Helps
andcargo subcmd
To Du
name | status | exapmle |
---|---|---|
Flag | √ | ls --help , cargo -V |
Option | √ | http --port 8080 , rustc -o filename |
Args | √ | rm Path1 Path2 Path3 |
SubCMD | √ | cargo run , cargo doc |
Flags aggregation | √ | ls -a -l => ls -al |
Multi Args | √ | cp SOURCE1 SOURCE2 SOUCE3 DEST |
Optional for Option and Args | √ | |
Dependencies and Conflicts between Options | x |