| 1 |
options: ['--version'] |
| 2 |
short: 'Show program version' |
| 3 |
|
| 4 |
--- |
| 5 |
|
| 6 |
options: ['--help'] |
| 7 |
short: 'Show program help' |
| 8 |
|
| 9 |
--- |
| 10 |
|
| 11 |
options: ['--manual'] |
| 12 |
metavar: 'TOPIC' |
| 13 |
optional: true |
| 14 |
short: 'Show a manual for a help topic' |
| 15 |
|
| 16 |
--- |
| 17 |
|
| 18 |
options: ['--input-type'] |
| 19 |
metavar: 'TYPE' |
| 20 |
default: 'auto' |
| 21 |
choices: ['yaml', 'json', 'python', 'help', 'auto'] |
| 22 |
short: 'Specify input file type. If "auto", input type is determined by the file extension' |
| 23 |
long: | |
| 24 |
For security reasons, reading python files must be explicitly enabled. |
| 25 |
|
| 26 |
--- |
| 27 |
|
| 28 |
options: ['--abbreviate-commands'] |
| 29 |
metavar: 'BOOL' |
| 30 |
default: 'False' |
| 31 |
choices: ['True', 'False'] |
| 32 |
short: 'Sets whether sub commands can be abbreviated' |
| 33 |
|
| 34 |
--- |
| 35 |
|
| 36 |
options: ['--abbreviate-options'] |
| 37 |
metavar: 'BOOL' |
| 38 |
choices: ['True', 'False'] |
| 39 |
default: 'False' |
| 40 |
short: 'Sets whether options can be abbreviated' |
| 41 |
long: | |
| 42 |
Currently only supported in Bash. |
| 43 |
|
| 44 |
--- |
| 45 |
|
| 46 |
options: ['--repeatable-options'] |
| 47 |
metavar: 'BOOL' |
| 48 |
choices: ['True', 'False'] |
| 49 |
default: 'False' |
| 50 |
short: 'Sets whether options are suggested multiple times during completion' |
| 51 |
long: | |
| 52 |
This only overrides the `repeatable` parameter of options that don't have |
| 53 |
it explicitly set to `True` or `False`. |
| 54 |
|
| 55 |
If you wish to make all options repeatable regardless of how they are |
| 56 |
defined in the definition file, use `--disable=repeatable`. |
| 57 |
|
| 58 |
--- |
| 59 |
|
| 60 |
options: ['--inherit-options'] |
| 61 |
metavar: 'BOOL' |
| 62 |
choices: ['True', 'False'] |
| 63 |
default: 'False' |
| 64 |
short: 'Sets whether parent options are visible to subcommands' |
| 65 |
|
| 66 |
--- |
| 67 |
|
| 68 |
options: ['--option-stacking'] |
| 69 |
metavar: 'BOOL' |
| 70 |
choices: ['True', 'False'] |
| 71 |
default: 'True' |
| 72 |
short: 'Sets whether short option stacking is allowed' |
| 73 |
long: | |
| 74 |
Enables or disables short option stacking, where multiple short options are |
| 75 |
combined in a single argument (e.g. `-fo` instead of `-f -o`). |
| 76 |
|
| 77 |
--- |
| 78 |
|
| 79 |
options: ['--long-option-argument-separator'] |
| 80 |
metavar: 'SEPARATOR' |
| 81 |
choices: ['space', 'equals', 'both'] |
| 82 |
default: 'both' |
| 83 |
short: 'Sets which separators are used for delimiting a long option from its argument' |
| 84 |
long: | |
| 85 |
If `space`, only the form `--option argument` is allowed. |
| 86 |
If `equals`, only the form `--option=argument` is allowed. |
| 87 |
If `both`, both forms are allowed. |
| 88 |
|
| 89 |
Currently only supported in Bash and Zsh. |
| 90 |
|
| 91 |
--- |
| 92 |
|
| 93 |
options: ['--disable'] |
| 94 |
metavar: 'FEATURES' |
| 95 |
short: 'Disable features' |
| 96 |
choices: { |
| 97 |
'hidden': 'Disable hidden options', |
| 98 |
'final': 'Disable final options', |
| 99 |
'groups': 'Disable option groups', |
| 100 |
'repeatable': 'Make all options repeatable', |
| 101 |
'when': 'Disable conditional options and positionals' |
| 102 |
} |
| 103 |
|
| 104 |
--- |
| 105 |
|
| 106 |
options: ['--vim-modeline'] |
| 107 |
metavar: 'BOOL' |
| 108 |
choices: ['True', 'False'] |
| 109 |
default: 'True' |
| 110 |
short: 'Sets whether a vim modeline comment shall be appended to the generated code' |
| 111 |
long: | |
| 112 |
The modeline comment looks like this: |
| 113 |
|
| 114 |
`# vim: ft=zsh ts=2 sts=2 sw=2 et` |
| 115 |
|
| 116 |
--- |
| 117 |
|
| 118 |
options: ['--bash-completions-version'] |
| 119 |
metavar: 'VERSION' |
| 120 |
default: '2.0' |
| 121 |
short: 'Generate code for a specific bash-completions version' |
| 122 |
long: | |
| 123 |
Use a value greater or equal to `2.12` to generate code for the "new" |
| 124 |
version of bash-completions. |
| 125 |
|
| 126 |
--- |
| 127 |
|
| 128 |
options: ['--zsh-compdef'] |
| 129 |
metavar: 'BOOL' |
| 130 |
choices: ['True', 'False'] |
| 131 |
default: 'True' |
| 132 |
short: 'Sets whether #compdef is used in zsh scripts' |
| 133 |
long: | |
| 134 |
Set this option to `False` if the generated script should be sourcable. |
| 135 |
|
| 136 |
--- |
| 137 |
|
| 138 |
options: ['--fish-inline-conditions'] |
| 139 |
metavar: 'BOOL' |
| 140 |
choices: ['True', 'False'] |
| 141 |
default: 'False' |
| 142 |
short: "Don't store conditions in a variable" |
| 143 |
|
| 144 |
--- |
| 145 |
|
| 146 |
options: ['--parser-variable'] |
| 147 |
metavar: 'VARIABLE' |
| 148 |
short: 'Specify the variable name of the ArgumentParser object (for --input-type=python)' |
| 149 |
|
| 150 |
--- |
| 151 |
|
| 152 |
options: ['--include-file'] |
| 153 |
metavar: "FILE" |
| 154 |
short: 'Include file in output' |
| 155 |
|
| 156 |
--- |
| 157 |
|
| 158 |
options: ['--comment'] |
| 159 |
metavar: "COMMENT" |
| 160 |
short: 'Add a comment to output' |
| 161 |
|
| 162 |
--- |
| 163 |
|
| 164 |
options: ['--keep-comments'] |
| 165 |
metavar: 'BOOL' |
| 166 |
choices: ['True', 'False'] |
| 167 |
default: 'False' |
| 168 |
short: 'Keep comments of helper functions used in the generated code' |
| 169 |
|
| 170 |
--- |
| 171 |
|
| 172 |
options: ['--function-prefix'] |
| 173 |
metavar: 'PREFIX' |
| 174 |
default: "_$PROG" |
| 175 |
short: "Set the prefix for generated functions" |
| 176 |
long: | |
| 177 |
The placeholder `$PROG` will be replaced by the program name. |
| 178 |
|
| 179 |
--- |
| 180 |
|
| 181 |
options: ['--debug'] |
| 182 |
short: 'Enable debug mode' |
| 183 |
long: | |
| 184 |
Keep comments, generate shell code for debugging and print a full stack |
| 185 |
trace in case of an error. |
| 186 |
|
| 187 |
--- |
| 188 |
|
| 189 |
options: ['-o', '--output'] |
| 190 |
metavar: 'FILE' |
| 191 |
short: 'Write output to destination file [default: stdout]' |
| 192 |
|
| 193 |
--- |
| 194 |
|
| 195 |
options: ['-i', '--install-system-wide'] |
| 196 |
short: 'Write output to the system-wide completions dir of shell' |
| 197 |
|
| 198 |
--- |
| 199 |
|
| 200 |
options: ['-u', '--uninstall-system-wide'] |
| 201 |
short: 'Uninstall the system-wide completion file for program' |