• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1```console
2$ 04_02_parse_derive --help
3A simple to use, efficient, and full-featured Command Line Argument Parser
4
5Usage: 04_02_parse_derive[EXE] <PORT>
6
7Arguments:
8  <PORT>  Network port to use
9
10Options:
11  -h, --help     Print help
12  -V, --version  Print version
13
14$ 04_02_parse_derive 22
15PORT = 22
16
17$ 04_02_parse_derive foobar
18? failed
19error: invalid value 'foobar' for '<PORT>': invalid digit found in string
20
21For more information, try '--help'.
22
23$ 04_02_parse_derive 0
24? failed
25error: invalid value '0' for '<PORT>': 0 is not in 1..=65535
26
27For more information, try '--help'.
28
29```
30