* Preset to use when option used without option-argument, especially optional but also boolean and negated. * The custom processing (parseArg) is called. * * @example * new Option('--color').default('GREYSCALE').preset('RGB'); * new Option('--donate [amount]').preset('20').argParser(p
(arg)
| 63 | */ |
| 64 | |
| 65 | preset(arg) { |
| 66 | this.presetArg = arg; |
| 67 | return this; |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Add option name(s) that conflict with this option. |
no outgoing calls