started parsing

This commit is contained in:
nora 2021-09-24 23:26:58 +02:00
parent 148574ed6e
commit cb734a708d
5 changed files with 86 additions and 63 deletions

View file

@ -1,13 +1,13 @@
use badargs::arg;
arg!(OutFile: "output", "o" -> Option<String>);
arg!(Force: "force", "f" -> bool);
arg!(OutFile: "output", 'o' -> Option<String>);
arg!(Force: "force", 'f' -> bool);
arg!(OLevel: "optimize" -> usize);
fn main() {
let args = badargs::badargs::<(OutFile, (Force, OLevel))>().unwrap();
let _outfile = args.get::<OutFile>();
let _force = args.get::<Force>();
let _o_level = args.get::<OLevel>();
let outfile = args.get::<OutFile>();
let force = args.get::<Force>();
let o_level = args.get::<OLevel>();
}