1ARGBASH(1)                                                          ARGBASH(1)
2
3
4

NAME

6       argbash - Argbash is an argument parser generator for Bash.
7

SYNOPSIS

9       argbash   [--output  OUTPUT]  [--type TYPE] [--library] [--strip STRIP]
10       [--check-typos]  [--commented]  [--search  SEARCH]...  [--debug  DEBUG]
11       [--help] [--version] <input>
12

DESCRIPTION

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

ARGUMENTS

25       -o OUTPUT, --output OUTPUT
26              Name of the output file (pass '-' for stdout).  [Default: -]
27
28
29
30       -t TYPE, --type TYPE
31              Output type to generate.  [Default: bash-script]
32
33              Check out the documentation to learn about all argbash capabili‐
34              ties that are supported.
35
36       --library
37              Whether the input file if the pure parsing  library.   [Default:
38              off]
39
40              This  option  is  deprecated  and  it  is  the  same  as --strip
41              user-content.
42
43       --strip STRIP
44              Determines what to have in the output.  [Default: none]
45
46              You can either strip none, which is useful for scripts.  If  you
47              strip  user-content,  you keep the Argbash header.  If you strip
48              all, you will have only the generated content in the result.
49
50       --check-typos
51              Whether to check for possible argbash  macro  typos.   [Default:
52              on]
53
54
55
56       -c, --commented
57              Commented  mode  - include explanatory comments with the parsing
58              code.  [Default: off]
59
60
61
62       -I SEARCH, --search SEARCH
63              Directories to search for the wrapped scripts (directory of  the
64              template will be added to the end of the list).  [Default: "."]
65
66
67
68       --debug DEBUG
69              (developer option) Tell autom4te to trace a macro.
70
71
72
73       -h, --help
74              Prints help.
75
76
77
78       -v, --version
79              Prints version.
80
81
82

AUTHOR

84       Matěj Týč
85
86
87
88
89argbash 2.8.0                     2019-01-27                        ARGBASH(1)
Impressum