Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/createOption-in-helpOption' into feature/helpOp…
Browse files Browse the repository at this point in the history
…tion-only-short
aweebit committed Aug 12, 2023
2 parents ddc338a + fad505b commit 610244d
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -293,7 +293,8 @@ export class Command {
*
* You can optionally supply the flags and description to override the defaults.
*/
version(str?: string, flags?: string, description?: string): this;
version(str: string, flags?: string, description?: string): this;
version(): string;

/**
* Define a command, implemented using an action handler.
1 change: 1 addition & 0 deletions typings/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ expectType<commander.Command | null>(program.parent);
expectType<commander.Command>(program.version('1.2.3'));
expectType<commander.Command>(program.version('1.2.3', '-r,--revision'));
expectType<commander.Command>(program.version('1.2.3', '-r,--revision', 'show revision information'));
expectType<string>(program.version());

// command (and CommandOptions)
expectType<commander.Command>(program.command('action'));

0 comments on commit 610244d

Please sign in to comment.