| Crates.io | windows-args |
| lib.rs | windows-args |
| version | 0.2.0 |
| created_at | 2019-06-15 21:17:46.365172+00 |
| updated_at | 2019-06-18 15:34:56.421483+00 |
| description | std::env::args for arbitrary strings on Windows |
| homepage | |
| repository | https://github.com/ExpHP/windows-args |
| max_upload_size | |
| id | 141404 |
| size | 38,508 |
windows-args 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);
}