17 releases

0.6.5 Mar 2, 2018
0.6.3 Oct 10, 2017
0.5.6 Apr 24, 2017

#64 in Command-line interface

Download history 4/week @ 2019-04-10 21/week @ 2019-04-24 3/week @ 2019-05-01 18/week @ 2019-05-08 44/week @ 2019-05-15 36/week @ 2019-05-22 36/week @ 2019-05-29 20/week @ 2019-06-05 20/week @ 2019-06-12 73/week @ 2019-06-19 78/week @ 2019-06-26 101/week @ 2019-07-03 160/week @ 2019-07-10 28/week @ 2019-07-17

169 downloads per month

MIT license

100KB
2.5K SLoC

Build status Latest version All downloads Downloads of latest version Documentation

app

A easy-to-use command-line-parser written for Rust.

Usage

Cargo.toml

    [dependencies]
    app = "0.6.5"

Or

    [dependencies]
    app = { git = "https://github.com/biluohc/app",branch = "master", version = "0.6.5" }

Documentation

Or

  • Run cargo doc --open after modified the toml file.

Examples

    git clone https://github.com/biluohc/app
  • fht2p: Options and Args
    cargo run --example fht2p -- -h
  • cp: Options and Multi Args
    cargo run --example cp
  • cpfn: Options, Multi Args and the help funcions.
    cargo run --example cpfn
  • zipcs: Sub_Commands, OptValue and OptValueParse
    cargo run --example zipcs
  • http: Option's order in help message
    cargo run --example http
    cargo run --example cargo-http

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

Dependencies

~355–590KB
~11K SLoC