mirror of
https://github.com/Noratrieb/badargs.git
synced 2026-01-14 19:55:08 +01:00
error reporting
This commit is contained in:
parent
d2788c133c
commit
34bddb59a6
4 changed files with 52 additions and 12 deletions
|
|
@ -7,7 +7,11 @@ arg!(OLevel: "optimize" -> usize);
|
|||
fn main() {
|
||||
let args = badargs::badargs!(OutFile, Force, OLevel);
|
||||
|
||||
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>();
|
||||
|
||||
println!("output: {:?}", outfile);
|
||||
println!("force: {:?}", force);
|
||||
println!("o-level: {:?}", o_level);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue