getopt3 2.6.1

Zero dependency command line argument parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (c) Radim Kolar 2013, 2018, 2023.
 * SPDX-License-Identifier: MIT
 *
 * getopt3 library is licensed under MIT license:
 *   https://spdx.org/licenses/MIT.html
*/

#![allow(non_snake_case)]

/** check parsing using real world environment */
#[test]
pub fn main() {
   let rc = getopt3::new(getopt3::hideBin(std::env::args()), "ab:c");
   assert! (rc.is_ok());
   let g = rc.unwrap();
   assert! (getopt3::validate(g).is_ok());
}