Skip to content

Commit

Permalink
feat: add --version option (#2460)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak authored Jul 24, 2024
1 parent dec33cb commit 6a61d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const pkgJson = require('../package.json');

const program = new CommanderCommand()
.usage('[command] [options]')
.version(pkgJson.version, '-v', 'Output the current version')
.version(pkgJson.version, '-v --version', 'Output the current version')
.enablePositionalOptions();

const handleError = (err: Error) => {
Expand Down

0 comments on commit 6a61d5d

Please sign in to comment.