Crates.io | winarg |
lib.rs | winarg |
version | 0.2.0 |
source | src |
created_at | 2021-07-27 16:24:27.991264 |
updated_at | 2021-07-27 16:55:49.617479 |
description | Windows command line argument parsing |
homepage | |
repository | https://github.com/ChrisDenton/winarg |
max_upload_size | |
id | 428020 |
size | 16,949 |
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.
Add this to your Cargo.toml
file
[dependencies.winarg]
version = "0.2.0"
for arg in winarg::args_native().skip(1) {
if arg == "--help" {
println!("help me!");
}
}