This repository was archived by the owner on Aug 22, 2023. It is now read-only.
File tree 4 files changed +11
-11
lines changed
4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 15
15
"semver" : " ^5.5.0"
16
16
},
17
17
"devDependencies" : {
18
- "@oclif/config" : " ^1.3.56 " ,
18
+ "@oclif/config" : " ^1.3.57 " ,
19
19
"@oclif/errors" : " ^1.0.2" ,
20
- "@oclif/plugin-help" : " ^1.0.5 " ,
20
+ "@oclif/plugin-help" : " ^1.1.3 " ,
21
21
"@oclif/plugin-plugins" : " ^1.0.1" ,
22
22
"@oclif/tslint" : " ^1.0.2" ,
23
23
"@types/chai" : " ^4.1.2" ,
Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ export default abstract class Command {
95
95
}
96
96
97
97
protected async catch ( err : any ) {
98
- if ( err . message . match ( / U n e x p e c t e d a r g u m e n t s ? : ( - h | - - h e l p ) ( , | \n ) / ) ) {
98
+ if ( err . message . match ( / U n e x p e c t e d a r g u m e n t s ? : ( - h | - - h e l p | h e l p ) ( , | \n ) / ) ) {
99
99
this . _help ( )
100
- } else if ( err . message . match ( / U n e x p e c t e d a r g u m e n t s ? : ( - v | - - v e r s i o n ) ( , | \n ) / ) ) {
100
+ } else if ( err . message . match ( / U n e x p e c t e d a r g u m e n t s ? : ( - v | - - v e r s i o n | v e r s i o n ) ( , | \n ) / ) ) {
101
101
this . _version ( )
102
102
} else throw err
103
103
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class Main extends Command {
26
26
27
27
protected _helpOverride ( ) : boolean {
28
28
if ( [ '-v' , '--version' , 'version' ] . includes ( this . argv [ 0 ] ) ) return this . _version ( ) as any
29
- if ( this . argv [ 0 ] === '-h' ) return true
29
+ if ( [ '-h' , 'help' ] . includes ( this . argv [ 0 ] ) ) return true
30
30
if ( this . argv . length === 0 ) return true
31
31
for ( let arg of this . argv ) {
32
32
if ( arg === '--help' ) return true
Original file line number Diff line number Diff line change 22
22
" @oclif/parser" " ^3.2.9"
23
23
semver "^5.5.0"
24
24
25
- " @oclif/config@^1.3.56 " :
26
- version "1.3.56 "
27
- resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.3.56 .tgz#daa92087dda5fd649d4aeea9cc44aef92b854e7f "
25
+ " @oclif/config@^1.3.57 " :
26
+ version "1.3.57 "
27
+ resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.3.57 .tgz#845ed86c01911860d49853aaab28f76c7f7a5f43 "
28
28
29
29
" @oclif/errors@^1.0.2 " :
30
30
version "1.0.2"
42
42
dependencies :
43
43
" @heroku/linewrap" " ^1.0.0"
44
44
45
- " @oclif/plugin-help@^1.0.5 " :
46
- version "1.0.5 "
47
- resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-1.0.5 .tgz#fb669c865424cb02ea0e2d3a372e58e116d2d396 "
45
+ " @oclif/plugin-help@^1.1.3 " :
46
+ version "1.1.3 "
47
+ resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-1.1.3 .tgz#2d0d280cb1cce485740237f029fd9a17fc568ce1 "
48
48
dependencies :
49
49
" @oclif/command" " ^1.3.1"
50
50
chalk "^2.3.1"
You can’t perform that action at this time.
0 commit comments