This repository was archived by the owner on Dec 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 9
9
m d [<version>]
10
10
m kill
11
11
m ls
12
- m available [--stable --unstable --rc --all -- pokemon]
12
+ m available [--stable --unstable --rc --pokemon]
13
13
m [<version> --url --branch=<branch>]
14
14
15
15
Examples:
Original file line number Diff line number Diff line change @@ -66,10 +66,7 @@ var commands = {
66
66
67
67
if ( opts . pokemon ) {
68
68
console . log ( title + ' versions you haven\'t installed yet:' ) ;
69
- versions = _ . without ( versions , _ . pluck ( installed , 'version' ) ) ;
70
- }
71
- else {
72
- console . log ( title + ' versions you haven\'t installed yet:' ) ;
69
+ versions = _ . difference ( versions , installed ) ;
73
70
}
74
71
printVersions ( versions , function ( err ) {
75
72
abortIfError ( err ) ;
@@ -125,13 +122,13 @@ var commands = {
125
122
} ;
126
123
127
124
var opts = {
128
- version : argv [ '<v >' ] ,
125
+ version : argv [ '<version >' ] ,
129
126
branch : argv [ '--branch' ]
130
127
} ;
131
128
132
129
var cmd = Object . keys ( commands ) . filter ( function ( name ) {
133
130
return argv [ name ] === true ;
134
- } ) [ 0 ] || ( argv [ '<v >' ] ? 'use' : 'list' ) ;
131
+ } ) [ 0 ] || ( argv [ '<version >' ] ? 'use' : 'list' ) ;
135
132
debug ( 'cmd is `%s` with opts `%j`' , cmd , opts ) ;
136
133
137
134
commands [ cmd ] ( opts ) ;
You can’t perform that action at this time.
0 commit comments