documentation and tests

This commit is contained in:
nora 2021-10-01 23:24:26 +02:00
parent 92628dfbbe
commit d2788c133c
3 changed files with 108 additions and 14 deletions

View file

@ -5,7 +5,7 @@ arg!(Force: "force", 'f' -> bool);
arg!(OLevel: "optimize" -> usize);
fn main() {
let args = badargs::badargs::<(OutFile, (Force, OLevel))>().unwrap();
let args = badargs::badargs!(OutFile, Force, OLevel);
let _outfile = args.get::<OutFile>();
let _force = args.get::<Force>();