File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ groupFunction* Customize how packages are divided into groups
254
254
[])
255
255
-ws, --workspaces Run on all workspaces. Add --root to also upgrade
256
256
the root project.
257
- -V, --version Output the version number.
257
+ -v, - V, --version Output the version number.
258
258
-h, --help You're lookin' at it.
259
259
```
260
260
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
- import { Help , program } from 'commander'
2
+ import Commander , { Help , program } from 'commander'
3
3
import cloneDeep from 'lodash/cloneDeep'
4
4
import pickBy from 'lodash/pickBy'
5
5
import semver from 'semver'
@@ -91,11 +91,14 @@ ${chalk.dim.underline(
91
91
program
92
92
. description ( '[filter] is a list or regex of package names to check (all others will be ignored).' )
93
93
. usage ( '[options] [filter]' )
94
+ . addOption ( new Commander . Option ( '-v, --version' , 'Version!' ) . hideHelp ( ) )
94
95
// See: boolean optional arg below
95
96
. configureHelp ( {
96
97
optionTerm : option =>
97
98
option . long && noCli . has ( option . long )
98
99
? option . long . replace ( '--' , '' ) + '*'
100
+ : option . long === '--version'
101
+ ? '-v, -V, --version'
99
102
: option . flags . replace ( '[bool]' , '' ) ,
100
103
optionDescription : option =>
101
104
option . long === '--version'
You can’t perform that action at this time.
0 commit comments