File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 description : 'log without timestamps' ,
4646 type : 'boolean' ,
4747 } )
48+ . option ( 'log-level' , {
49+ description : 'log with level' ,
50+ type : 'boolean' ,
51+ } )
52+ . option ( 'no-log-level' , {
53+ description : 'log without level' ,
54+ type : 'boolean' ,
55+ } )
4856 . option ( 'proxy' , {
4957 description : 'update proxy for HTTP and HTTPS to host' ,
5058 type : 'string' ,
Original file line number Diff line number Diff line change 100100(defun eask-strict-p () (eask--flag " --strict" )) ; --strict
101101(defun eask-timestamps-p () (eask--flag " --timestamps" )) ; --timestamps
102102(defun eask-no-timestamps-p () (eask--flag " --no-timestamps" )) ; --no-timestamps
103+ (defun eask-log-level-p () (eask--flag " --log-level" )) ; --log-level
104+ (defun eask-no-log-level-p () (eask--flag " --no-log-level" )) ; --no-log-level
103105
104106; ;; String (with arguments)
105107(defun eask-proxy () (eask--flag-value " --proxy" )) ; --proxy
119121 (when (eask-verbose) (setq eask-verbosity (eask-verbose)))
120122 (when (eask-timestamps-p) (setq eask-timestamps t ))
121123 (when (eask-no-timestamps-p) (setq eask-timestamps nil ))
124+ (when (eask-log-level-p) (setq eask-log-level t ))
125+ (when (eask-no-log-level-p) (setq eask-log-level nil ))
122126 (eask--add-proxy " http" (eask-proxy))
123127 (eask--add-proxy " https" (eask-proxy))
124128 (eask--add-proxy " http" (eask-http-proxy))
@@ -183,7 +187,8 @@ other scripts internally. See function `eask-call'.")
183187 (eask--form-options
184188 '(" -g" " -f" " --depth" " --dev"
185189 " --debug" " --strict"
186- " --timestamps" " --no-timestamps" ))
190+ " --timestamps" " --no-timestamps"
191+ " --log-level" " --no-log-level" ))
187192 " List of boolean type options" )
188193
189194(defconst eask--option-args
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ function _global_options(argv) {
6060 flags . push ( def_flag ( argv . debug , '--debug' ) ) ;
6161 flags . push ( def_flag ( argv . strict , '--strict' ) ) ;
6262 flags . push ( def_flag ( argv . timestamps , ( argv . timestamps ) ? '--timestamps' : '--no-timestamps' ) ) ;
63+ flags . push ( def_flag ( argv [ 'log-level' ] , ( argv [ 'log-level' ] ) ? '--log-level' : '--no-log-level' ) ) ;
6364 /* With arguments */
6465 flags . push ( def_flag ( argv . proxy , '--proxy' , argv . proxy ) ) ;
6566 flags . push ( def_flag ( argv [ 'http-proxy' ] , '--http-proxy' , argv [ 'http-proxy' ] ) ) ;
You can’t perform that action at this time.
0 commit comments