@@ -14,34 +14,40 @@ const cmd = {
1414 desc : 'List questions' ,
1515 builder : function ( yargs ) {
1616 return yargs
17- . option ( 'q' , core . filters . query )
18- . option ( 's' , {
19- alias : 'stat' ,
20- type : 'boolean' ,
21- default : false ,
22- describe : 'Show statistics of listed questions'
23- } )
24- . option ( 't' , core . filters . tag )
25- . option ( 'x' , {
26- alias : 'extra' ,
27- type : 'boolean' ,
28- default : false ,
29- describe : 'Show extra details: category, companies, tags.'
30- } )
31- . option ( 'c' , core . filters . category )
32- . positional ( 'keyword' , {
33- type : 'string' ,
34- default : '' ,
35- describe : 'Filter questions by keyword'
36- } )
37- . example ( chalk . yellow ( 'leetcode list' ) , 'List all questions' )
38- . example ( chalk . yellow ( 'leetcode list -x' ) , 'Show extra info of questions, e.g. tags' )
39- . example ( '' , '' )
40- . example ( chalk . yellow ( 'leetcode list array' ) , 'List questions that has "array" in name' )
41- . example ( chalk . yellow ( 'leetcode list -q eD' ) , 'List questions that with easy level and not done' )
42- . example ( chalk . yellow ( 'leetcode list -t google' ) , 'List questions from Google company (require plugin)' )
43- . example ( chalk . yellow ( 'leetcode list -t stack' ) , 'List questions realted to stack (require plugin)' )
44- . example ( chalk . yellow ( 'leetcode list -c lcof' ) , 'List questions from category (require plugin)' ) ;
17+ . option ( 'q' , core . filters . query )
18+ . option ( 's' , {
19+ alias : 'stat' ,
20+ type : 'boolean' ,
21+ default : false ,
22+ describe : 'Show statistics of listed questions'
23+ } )
24+ . option ( 't' , core . filters . tag )
25+ . option ( 'x' , {
26+ alias : 'extra' ,
27+ type : 'boolean' ,
28+ default : false ,
29+ describe : 'Show extra details: category, companies, tags.'
30+ } )
31+ . option ( 'T' , {
32+ alias : 'dontTranslate' ,
33+ type : 'boolean' ,
34+ default : false ,
35+ describe : 'Set to true to disable endpoint\'s translation' ,
36+ } )
37+ . option ( 'c' , core . filters . category )
38+ . positional ( 'keyword' , {
39+ type : 'string' ,
40+ default : '' ,
41+ describe : 'Filter questions by keyword'
42+ } )
43+ . example ( chalk . yellow ( 'leetcode list' ) , 'List all questions' )
44+ . example ( chalk . yellow ( 'leetcode list -x' ) , 'Show extra info of questions, e.g. tags' )
45+ . example ( '' , '' )
46+ . example ( chalk . yellow ( 'leetcode list array' ) , 'List questions that has "array" in name' )
47+ . example ( chalk . yellow ( 'leetcode list -q eD' ) , 'List questions that with easy level and not done' )
48+ . example ( chalk . yellow ( 'leetcode list -t google' ) , 'List questions from Google company (require plugin)' )
49+ . example ( chalk . yellow ( 'leetcode list -t stack' ) , 'List questions realted to stack (require plugin)' )
50+ . example ( chalk . yellow ( 'leetcode list -c lcof' ) , 'List questions from category (require plugin)' ) ;
4551 }
4652} ;
4753
0 commit comments