File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,11 @@ else {
5858 ]
5959
6060 if ( cmd ) {
61- if ( cmd . length === 1 ) {
62- const mapToCmd = {
63- i : 'info' ,
64- h : 'help'
65- }
66- cmd = mapToCmd [ cmd ]
61+ if ( cmd === '-h' ) {
62+ cmd = 'help'
63+ }
64+ else if ( cmd === 'i' ) {
65+ cmd = 'info'
6766 }
6867
6968 if ( commands . includes ( cmd ) ) {
9089 else {
9190 cmd = 'help'
9291 }
92+
9393 require ( `./quasar-${ cmd } ` )
9494 }
9595}
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ console.log(`
2323 --version, -v Print Quasar CLI version
2424
2525 Commands
26- create Create a project folder
27- info Display info about your machine
28- (and your App if in a project folder)
29- upgrade Check (and optionally) upgrade Quasar packages
30- from a Quasar project folder
31- serve Create an ad-hoc server on App's distributables
32- help Displays this message
26+ create Create a project folder
27+ info Display info about your machine
28+ (and your App if in a project folder)
29+ upgrade Check (and optionally) upgrade Quasar packages
30+ from a Quasar project folder
31+ serve Create an ad-hoc server on App's distributables
32+ help, -h Displays this message
3333
3434 --------------
3535 => IMPORTANT !
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ if (ssrDetected === false) {
135135 const app = express ( )
136136
137137 if ( ! argv . silent ) {
138- app . get ( '*' , ( req , res , next ) => {
138+ app . get ( '*' , ( req , _ , next ) => {
139139 console . log (
140140 `GET ${ green ( req . url ) } ${ grey ( '[' + req . ip + ']' ) } ${ new Date ( ) } `
141141 )
You can’t perform that action at this time.
0 commit comments