@@ -81,7 +81,7 @@ declare namespace commander {
81
81
* @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
82
82
* @param description - description of executable command
83
83
* @param opts - configuration options
84
- * @returns top level command for chaining more command definitions
84
+ * @returns `this` command for chaining
85
85
*/
86
86
command ( nameAndArgs : string , description : string , opts ?: commander . CommandOptions ) : this;
87
87
@@ -98,14 +98,14 @@ declare namespace commander {
98
98
*
99
99
* See .command() for creating an attached subcommand which inherits settings from its parent.
100
100
*
101
- * @returns parent command for chaining
101
+ * @returns `this` command for chaining
102
102
*/
103
103
addCommand ( cmd : Command ) : this;
104
104
105
105
/**
106
106
* Define argument syntax for command.
107
107
*
108
- * @returns Command for chaining
108
+ * @returns `this` command for chaining
109
109
*/
110
110
arguments ( desc : string ) : this;
111
111
@@ -125,7 +125,7 @@ declare namespace commander {
125
125
* // output help here
126
126
* });
127
127
*
128
- * @returns Command for chaining
128
+ * @returns `this` command for chaining
129
129
*/
130
130
action ( fn : ( ...args : any [ ] ) => void | Promise < void > ) : this;
131
131
@@ -169,7 +169,7 @@ declare namespace commander {
169
169
* // optional argument
170
170
* program.option('-c, --cheese [type]', 'add cheese [marble]');
171
171
*
172
- * @returns Command for chaining
172
+ * @returns `this` command for chaining
173
173
*/
174
174
option ( flags : string , description ?: string , defaultValue ?: string | boolean ) : this;
175
175
option ( flags : string , description : string , regexp : RegExp , defaultValue ?: string | boolean ) : this;
@@ -189,23 +189,23 @@ declare namespace commander {
189
189
* Whether to store option values as properties on command object,
190
190
* or store separately (specify false). In both cases the option values can be accessed using .opts().
191
191
*
192
- * @return Command for chaining
192
+ * @returns `this` command for chaining
193
193
*/
194
194
storeOptionsAsProperties ( value ?: boolean ) : this;
195
195
196
196
/**
197
197
* Whether to pass command to action handler,
198
198
* or just the options (specify false).
199
199
*
200
- * @return Command for chaining
200
+ * @returns `this` command for chaining
201
201
*/
202
202
passCommandToAction ( value ?: boolean ) : this;
203
203
204
204
/**
205
205
* Allow unknown options on the command line.
206
206
*
207
207
* @param [arg] if `true` or omitted, no error will be thrown for unknown options.
208
- * @returns Command for chaining
208
+ * @returns `this` command for chaining
209
209
*/
210
210
allowUnknownOption ( arg ?: boolean ) : this;
211
211
@@ -221,7 +221,7 @@ declare namespace commander {
221
221
* program.parse(); // implicitly use process.argv and auto-detect node vs electron conventions
222
222
* program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
223
223
*
224
- * @returns Command for chaining
224
+ * @returns `this` command for chaining
225
225
*/
226
226
parse ( argv ?: string [ ] , options ?: ParseOptions ) : this;
227
227
@@ -264,7 +264,7 @@ declare namespace commander {
264
264
/**
265
265
* Set the description.
266
266
*
267
- * @returns Command for chaining
267
+ * @returns `this` command for chaining
268
268
*/
269
269
description ( str : string , argsDescription ?: { [ argName : string ] : string } ) : this;
270
270
/**
@@ -275,7 +275,7 @@ declare namespace commander {
275
275
/**
276
276
* Set an alias for the command.
277
277
*
278
- * @returns Command for chaining
278
+ * @returns `this` command for chaining
279
279
*/
280
280
alias ( alias : string ) : this;
281
281
/**
@@ -286,7 +286,7 @@ declare namespace commander {
286
286
/**
287
287
* Set the command usage.
288
288
*
289
- * @returns Command for chaining
289
+ * @returns `this` command for chaining
290
290
*/
291
291
usage ( str : string ) : this;
292
292
/**
@@ -297,7 +297,7 @@ declare namespace commander {
297
297
/**
298
298
* Set the name of the command.
299
299
*
300
- * @returns Command for chaining
300
+ * @returns `this` command for chaining
301
301
*/
302
302
name ( str : string ) : this;
303
303
/**
0 commit comments