flag-parser 0.1.1

Parses flags like "-a" or "--long-flag" in a given string
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 4.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • lucasmelodev1/flag-parser
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lucasmelodev1

#Flag Parser Argument parsing for command line flags.

Usage

let input = "-a -b -c -d --long-flag-a --long-flag-b --long-flag-c";
let flags = flag_parser::get_flags(input);
// flags = ["a", "b", "c", "d", "long-flag-a", "long-flag-b", "long-flag-c"]

flags.contains("a") // true