ExpHP / windows-args

Parsing the windows command line in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows-args Appveyor Crates.io Docs

A command-line argument parser for Windows, copied almost wholesale from the rust standard library.

[dependencies]
windows-args = "0.2"
use windows_args::Args;

// for a complete command line, with executable
for arg in Args::parse_cmd(r#"foobar.exe to "C:\Program Files\Hi.txt" now"#) {
    println!("{}", arg);
}

// for just args, without an executable
for arg in Args::parse_args(r#"to "C:\Program Files\Hi.txt" now"#) {
    println!("{}", arg);
}

About

Parsing the windows command line in rust

License:Apache License 2.0


Languages

Language:Rust 100.0%