libcros 0.6.0

A Rust library that provides easy-to-use functions for interacting with a Chrome device
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use libcros::libargs::ArgCheck;

fn main() {
  let mut args: ArgCheck = ArgCheck::new();
  let verbose: bool = args.fbool("--verbose", "", "Enable debug messages");
  let foobar = args.fequals_str("--foobar", "-f", "Example flag");

  args.check_help();

  println!("Verbose logging enabled: {}", verbose);
  println!("Foobar flag value: {}", foobar);
}