File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/app/modules/query/services Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const config = require("./config-store");
22let argh = require ( "argh" ) ;
33
44let values = process . argv . slice ( 2 ) ;
5- argh = argh ( values [ 0 ] . split ( " " ) ) ;
5+ argh = argh ( values [ 1 ] . split ( " " ) ) ;
66
77if ( argh . sport ) {
88 config . set ( "sport" , argh . sport ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class QueryService {
1414 return new DropdownQuestion ( {
1515 key : cmd . name ,
1616 label : cmd . message || cmd . name ,
17- options : cmd . choices . map ( a => ( { key : a , value : a } ) ) ,
17+ options : cmd . choices . map ( ( a ) => ( { key : a , value : a } ) ) ,
1818 order : 3 ,
1919 default : cmd . default ,
2020 } ) ;
@@ -32,7 +32,7 @@ export class QueryService {
3232 key : cmd . name ,
3333 label : cmd . message || cmd . name ,
3434 value : cmd . default ,
35- required : true ,
35+ required : cmd . required ,
3636 order : i + 1 ,
3737 default : cmd . default ,
3838 } ) ;
You can’t perform that action at this time.
0 commit comments