winarg

Crates.iowinarg
lib.rswinarg
version0.2.0
sourcesrc
created_at2021-07-27 16:24:27.991264
updated_at2021-07-27 16:55:49.617479
descriptionWindows command line argument parsing
homepage
repositoryhttps://github.com/ChrisDenton/winarg
max_upload_size
id428020
size16,949
Chris Denton (ChrisDenton)

documentation

README

The Windows command line is passed to applications as a string. To get an array of arguments it's necessary to parse this string, which is what this crate does. This list of arguments can then be used by higher level argument parsers.

It uses the latest C/C++ parsing rules so that it is consistent with using argv from a C/C++ program.

Using

Add this to your Cargo.toml file

[dependencies.winarg]
version = "0.2.0"

Example

for arg in winarg::args_native().skip(1) {
    if arg == "--help" {
        println!("help me!");
    }
}
Commit count: 12

cargo fmt