File tree Expand file tree Collapse file tree 2 files changed +134
-268
lines changed Expand file tree Collapse file tree 2 files changed +134
-268
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,20 @@ if (program['pineapple']) console.log(' - pineapple');
15
15
if ( program [ 'bbq' ] ) console . log ( ' - bbq' ) ;
16
16
console . log ( ' - %s cheese' , program [ 'cheese' ] ) ;
17
17
18
- function range ( val :string ) {
18
+ function range ( val : string ) {
19
19
return val . split ( '..' ) . map ( Number ) ;
20
20
}
21
21
22
- function list ( val :string ) {
22
+ function list ( val : string ) {
23
23
return val . split ( ',' ) ;
24
24
}
25
25
26
- function collect ( val :string , memo :string [ ] ) {
26
+ function collect ( val : string , memo : string [ ] ) {
27
27
memo . push ( val ) ;
28
28
return memo ;
29
29
}
30
30
31
- function increaseVerbosity ( v :any , total :number ) {
31
+ function increaseVerbosity ( v : any , total : number ) {
32
32
return total + 1 ;
33
33
}
34
34
@@ -80,11 +80,11 @@ program
80
80
} ) ;
81
81
82
82
program
83
- . version ( '0.0.1' )
84
- . arguments ( '<cmd> [env]' )
85
- . action ( function ( cmd , env ) {
86
- console . log ( cmd , env ) ;
87
- } ) ;
83
+ . version ( '0.0.1' )
84
+ . arguments ( '<cmd> [env]' )
85
+ . action ( ( cmd , env ) => {
86
+ console . log ( cmd , env ) ;
87
+ } ) ;
88
88
89
89
program . parse ( process . argv ) ;
90
90
You can’t perform that action at this time.
0 commit comments