#command #parser #line #echo

yanked cmd_parser

Simple crate that makes the parsing of command line commands much easier

0.1.0 Dec 1, 2020

#61 in #echo

GPL-3.0-only

5KB
52 lines

Command Parser

cmd_parser contains a simple struct that makes the parsing of command line commands much easier.

Example

fn echo(args: Vec<&str>) {
    println!("{}", args[1..].concat());
}

let mut parser = cmd_parser::CommandParser::new();
parser.insert("echo", echo);
parser.call("echo This is an example!");

No runtime deps