* Parse `argv`, setting options and invoking commands when defined. * * Use parseAsync instead of parse if any of your action handlers are async. * * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode! * * Or cal
(argv, parseOptions)
| 1079 | */ |
| 1080 | |
| 1081 | parse(argv, parseOptions) { |
| 1082 | this._prepareForParse(); |
| 1083 | const userArgs = this._prepareUserArgs(argv, parseOptions); |
| 1084 | this._parseCommand([], userArgs); |
| 1085 | |
| 1086 | return this; |
| 1087 | } |
| 1088 | |
| 1089 | /** |
| 1090 | * Parse `argv`, setting options and invoking commands when defined. |