Skip to content

Commit

Permalink
Merge branch 'feature/createOption-in-helpOption' into feature/obscur…
Browse files Browse the repository at this point in the history
…ed-help-option-warnings
  • Loading branch information
aweebit committed Aug 12, 2023
2 parents daa3fed + fad505b commit 517fc6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typings/index.d.ts
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions typings/index.test-d.ts
Expand Up @@ -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'));
Expand Down

0 comments on commit 517fc6c

Please sign in to comment.