Crate app

Source
Expand description

§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

Modules§

statics
Mut Statics

Structs§

App
Application
Args
Args
ArgsValue
ArgsValue
Cmd
Command
Helper
Helper
Helps
Helps
Opt
Option
OptValue
OptValue

Enums§

AppError
AppError
OptTypo
OptionType

Traits§

ArgsValueParse
You can use custom ArgsValue by impl it
OptValueParse
You can use custom OptValue by impl it

Functions§

app
A help function for App
args
A help function for Args
opt
A help function for Opt