]>
Commit | Line | Data |
---|---|---|
49aad941 FG |
1 | ```console |
2 | $ 04_02_validate_derive --help | |
3 | A simple to use, efficient, and full-featured Command Line Argument Parser | |
4 | ||
5 | Usage: 04_02_validate_derive[EXE] <PORT> | |
6 | ||
7 | Arguments: | |
8 | <PORT> Network port to use | |
9 | ||
10 | Options: | |
11 | -h, --help Print help | |
12 | -V, --version Print version | |
13 | ||
14 | $ 04_02_validate_derive 22 | |
15 | PORT = 22 | |
16 | ||
17 | $ 04_02_validate_derive foobar | |
18 | ? failed | |
19 | error: invalid value 'foobar' for '<PORT>': `foobar` isn't a port number | |
20 | ||
21 | For more information, try '--help'. | |
22 | ||
23 | $ 04_02_validate_derive 0 | |
24 | ? failed | |
25 | error: invalid value '0' for '<PORT>': port not in range 1-65535 | |
26 | ||
27 | For more information, try '--help'. | |
28 | ||
29 | ``` |