|
17 | 17 | # ARG_OPTIONAL_REPEATED([search],[I],[Directories to search for the wrapped scripts (directory of the template will be added to the end of the list)],["."])
|
18 | 18 | # ARG_OPTIONAL_SINGLE([debug],[],[(developer option) Tell autom4te to trace a macro])
|
19 | 19 | # ARG_TYPE_GROUP_SET([content],[content],[strip],[none,user-content,all])
|
20 |
| -# ARG_TYPE_GROUP_SET([type],[type],[type],[bash-script,posix-script,manpage,manpage-defs,completion,docopt]) |
| 20 | +# ARG_TYPE_GROUP_SET([type],[type],[type],[bash-script,posix-script,manpage,manpage-defs,completion,docopt,excised]) |
21 | 21 | # ARG_DEFAULTS_POS([])
|
22 | 22 | # ARG_HELP([Argbash is an argument parser generator for Bash.])
|
23 | 23 | # ARG_VERSION_AUTO([_ARGBASH_VERSION])
|
@@ -52,12 +52,12 @@ content()
|
52 | 52 |
|
53 | 53 | type()
|
54 | 54 | {
|
55 |
| - local _allowed=("bash-script" "posix-script" "manpage" "manpage-defs" "completion" "docopt") _seeking="$1" |
| 55 | + local _allowed=("bash-script" "posix-script" "manpage" "manpage-defs" "completion" "docopt" "excised") _seeking="$1" |
56 | 56 | for element in "${_allowed[@]}"
|
57 | 57 | do
|
58 | 58 | test "$element" = "$_seeking" && echo "$element" && return 0
|
59 | 59 | done
|
60 |
| - die "Value '$_seeking' (of argument '$2') doesn't match the list of allowed values: 'bash-script', 'posix-script', 'manpage', 'manpage-defs', 'completion' and 'docopt'" 4 |
| 60 | + die "Value '$_seeking' (of argument '$2') doesn't match the list of allowed values: 'bash-script', 'posix-script', 'manpage', 'manpage-defs', 'completion', 'docopt' and 'excised'" 4 |
61 | 61 | }
|
62 | 62 |
|
63 | 63 |
|
@@ -90,7 +90,7 @@ print_help()
|
90 | 90 | printf '\t%s\n' "<input>: The input template file (pass '-' for stdin)"
|
91 | 91 | printf '\t%s\n' "-o, --output: Name of the output file (pass '-' for stdout) (default: '-')"
|
92 | 92 | printf '\t%s\n' "-i, --in-place, --no-in-place: Update a bash script in-place (off by default)"
|
93 |
| - printf '\t%s\n' "-t, --type: Output type to generate. Can be one of: 'bash-script', 'posix-script', 'manpage', 'manpage-defs', 'completion' and 'docopt' (default: 'bash-script')" |
| 93 | + printf '\t%s\n' "-t, --type: Output type to generate. Can be one of: 'bash-script', 'posix-script', 'manpage', 'manpage-defs', 'completion', 'docopt' and 'excised' (default: 'bash-script')" |
94 | 94 | printf '\t%s\n' "--library, --no-library: Whether the input file if the pure parsing library (off by default)"
|
95 | 95 | printf '\t%s\n' "--strip: Determines what to have in the output. Can be one of: 'none', 'user-content' and 'all' (default: 'none')"
|
96 | 96 | printf '\t%s\n' "--check-typos, --no-check-typos: Whether to check for possible argbash macro typos (on by default)"
|
|
0 commit comments