• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1```console
2$ 04_04_custom --help
3A simple to use, efficient, and full-featured Command Line Argument Parser
4
5Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE]
6
7Arguments:
8  [INPUT_FILE]  some regular input
9
10Options:
11      --set-ver <VER>      set version manually
12      --major              auto inc major
13      --minor              auto inc minor
14      --patch              auto inc patch
15      --spec-in <SPEC_IN>  some special input argument
16  -c <CONFIG>
17  -h, --help               Print help
18  -V, --version            Print version
19
20$ 04_04_custom
21? failed
22error: Can only modify one version field
23
24Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE]
25
26For more information, try '--help'.
27
28$ 04_04_custom --major
29Version: 2.2.3
30
31$ 04_04_custom --major --minor
32? failed
33error: Can only modify one version field
34
35Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE]
36
37For more information, try '--help'.
38
39$ 04_04_custom --major -c config.toml
40? failed
41Version: 2.2.3
42error: INPUT_FILE or --spec-in is required when using --config
43
44Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE]
45
46For more information, try '--help'.
47
48$ 04_04_custom --major -c config.toml --spec-in input.txt
49Version: 2.2.3
50Doing work using input input.txt and config config.toml
51
52```
53