clipars

Command line parser for Rust

5 releases (1 stable)

✓ Uses Rust 2018 edition

new 1.0.0 Mar 16, 2019
0.2.2 Mar 15, 2019
0.2.1 Mar 14, 2019
0.2.0 Mar 12, 2019
0.1.0 Mar 11, 2019

#372 in #cli

Download history 40/week @ 2019-03-09

16 downloads per month

ISC license

22KB
321 lines

Build Status crates.io Documentation

clipars

Command line parser for Rust

extern crate clipars;

use clipars::Command;
use std::env;

let env_args = env::args().collect::<Vec<String>>();
let command = Command::from_string(
    &env_args[..],
    &["option1", "option2"],
);

No runtime deps