cliargs 0.6.0

Parses command line arguments and prints the help.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
warning: unused import: `cliargs::Cmd`
 --> tests/compile_errors/lifetime_of_cmd_opt_args.rs:1:5
  |
1 | use cliargs::Cmd;
  |     ^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0515]: cannot return value referencing local variable `cmd`
  --> tests/compile_errors/lifetime_of_cmd_opt_args.rs:12:9
   |
9  |         let opt_args = cmd.opt_args("foo").unwrap();
   |                        --- `cmd` is borrowed here
...
12 |         opt_args[0]
   |         ^^^^^^^^^^^ returns a value referencing data owned by the current function