windows-args 0.2.0

std::env::args for arbitrary strings on Windows
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented5 out of 7 items with examples
  • Size
  • Source code size: 45.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.81 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ExpHP/windows-args
    0 0 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • notriddle ExpHP github:rust-bus:maintainers

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);
}