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_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_args.rs:12:9
   |
8  |         let args = cmd.args();
   |                    --- `cmd` is borrowed here
...
12 |         arg1
   |         ^^^^ returns a value referencing data owned by the current function