mirror of
https://github.com/Noratrieb/badargs.git
synced 2026-01-14 19:55:08 +01:00
documentation and tests
This commit is contained in:
parent
92628dfbbe
commit
d2788c133c
3 changed files with 108 additions and 14 deletions
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue