File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,10 @@ command.command('app', '[output] [name]')
104104 } ,
105105 'app'
106106 )
107- . args ( function ( output , name ) {
107+ . args ( function ( args ) {
108+ var output = args [ 0 ] ;
109+ var name = args [ 1 ] ;
110+
108111 if ( output )
109112 this . setOption ( 'output' , output ) ;
110113 if ( name )
@@ -122,7 +125,9 @@ command.command('module', '[name]')
122125 . option ( '-n, --name <name>' , 'Name of module' )
123126 . option ( '-a, --app-name <name>' , 'App root namespace' )
124127 . option ( '-T, --type <name>' , 'Type name that should be used by module' )
125- . args ( function ( name ) {
128+ . args ( function ( args ) {
129+ var name = args [ 0 ] ;
130+
126131 this . setOption ( 'name' , name ) ;
127132 } )
128133 . action ( function ( ) {
@@ -141,7 +146,9 @@ command.command('type', '[name]')
141146 . option ( '-t, --template <name>' , 'Name of template' , 'default' )
142147 . option ( '-n, --name <name>' , 'Name of type' )
143148 . option ( '-a, --app-name <name>' , 'App root namespace' )
144- . args ( function ( name ) {
149+ . args ( function ( args ) {
150+ var name = args [ 0 ] ;
151+
145152 if ( ! / [ A - Z ] / . test ( name . charAt ( 0 ) ) )
146153 throw new Error ( 'Type name should begins with capital letter:' , name ) ;
147154
Original file line number Diff line number Diff line change 2424 "basisjs-tools-ast" : " ^1.6.0" ,
2525 "basisjs-tools-build" : " ^1.11.3" ,
2626 "basisjs-tools-server" : " ^1.0.1" ,
27- "clap" : " ~1.2.2 " ,
27+ "clap" : " ~1.2.3 " ,
2828 "update-notifier" : " 0.6.3" ,
2929 "chalk" : " ~1.1.3" ,
3030 "win-spawn" : " 2.0.0" ,
You can’t perform that action at this time.
0 commit comments