1ARGBASH(1) ARGBASH(1)
2
3
4
6 argbash - Argbash is an argument parser generator for Bash.
7
9 argbash [--output OUTPUT] [--type type] [--library] [--strip content]
10 [--check-typos] [--commented] [--search SEARCH]... [--debug DEBUG]
11 [--help] [--version] <input>
12
14 Argbash is a code generator that typically generates a bash argu‐
15 ment-parsing library tailor-made for your script. It lets you to
16 describe arguments your script should take and then, you can generate
17 the bash parsing code. It stays in your script by default, but you can
18 have it generated to a separate file and let bash to include it in your
19 script for you. Argbash is very simple to use and the generated code
20 is relatively nice to read. Moreover, argument definitions stay embed‐
21 ded in the script, so when you need to update the parsing logic, you
22 just re-run the argbash script on the already generated script.
23
25 -o OUTPUT, --output OUTPUT
26 Name of the output file (pass '-' for stdout). [Default: -]
27
28
29
30 -t bash-script|posix-script|manpage|manpage-defs|completion|docopt,
31 --type bash-script|posix-script|manpage|manpage-defs|completion|docopt
32 Output type to generate.
33 [Default: bash-script]
34
35 Check out the documentation to learn about all argbash capabili‐
36 ties that are supported.
37
38 --library
39 Whether the input file if the pure parsing library. [Default:
40 off]
41
42 This option is deprecated and it is the same as --strip
43 user-content.
44
45 --strip none|user-content|all Determines what to have in the output.
46 [Default: none]
47
48 You can either strip none, which is useful for scripts. If you
49 strip user-content, you keep the Argbash header. If you strip
50 all, you will have only the generated content in the result.
51
52 --check-typos
53 Whether to check for possible argbash macro typos. [Default:
54 on]
55
56
57
58 -c, --commented
59 Commented mode - include explanatory comments with the parsing
60 code. [Default: off]
61
62
63
64 -I SEARCH, --search SEARCH
65 Directories to search for the wrapped scripts (directory of the
66 template will be added to the end of the list). [Default: "."]
67
68
69
70 --debug DEBUG
71 (developer option) Tell autom4te to trace a macro.
72
73
74
75 -h, --help
76 Prints help.
77
78
79
80 -v, --version
81 Prints version.
82
83
84
86 Matěj Týč
87
88
89
90
91argbash 2.8.1 2020-03-27 ARGBASH(1)