Merge branch '2.9dev' into hpkp_bugfix
This commit is contained in:
commit
05c8e1e595
|
@ -13081,18 +13081,22 @@ parse_cmd_line() {
|
||||||
do_logging=true
|
do_logging=true
|
||||||
;;
|
;;
|
||||||
--json)
|
--json)
|
||||||
|
$do_pretty_json && JSONHEADER=false && fatal "flat and pretty JSON output are mutually exclusive" 251
|
||||||
do_json=true
|
do_json=true
|
||||||
;; # DEFINITION of JSONFILE is not arg specified: automagically in parse_hn_port()
|
;; # DEFINITION of JSONFILE is not arg specified: automagically in parse_hn_port()
|
||||||
# following does the same but we can specify a log location additionally
|
# following does the same but we can specify a log location additionally
|
||||||
--jsonfile|--jsonfile=*)
|
--jsonfile|--jsonfile=*)
|
||||||
|
$do_pretty_json && JSONHEADER=false && fatal "flat and pretty JSON output are mutually exclusive" 251
|
||||||
JSONFILE="$(parse_opt_equal_sign "$1" "$2")"
|
JSONFILE="$(parse_opt_equal_sign "$1" "$2")"
|
||||||
[[ $? -eq 0 ]] && shift
|
[[ $? -eq 0 ]] && shift
|
||||||
do_json=true
|
do_json=true
|
||||||
;;
|
;;
|
||||||
--json-pretty)
|
--json-pretty)
|
||||||
|
$do_json && JSONHEADER=false && fatal "flat and pretty JSON output are mutually exclusive" 251
|
||||||
do_pretty_json=true
|
do_pretty_json=true
|
||||||
;;
|
;;
|
||||||
--jsonfile-pretty|--jsonfile-pretty=*)
|
--jsonfile-pretty|--jsonfile-pretty=*)
|
||||||
|
$do_json && JSONHEADER=false && fatal "flat and pretty JSON output are mutually exclusive" 251
|
||||||
JSONFILE="$(parse_opt_equal_sign "$1" "$2")"
|
JSONFILE="$(parse_opt_equal_sign "$1" "$2")"
|
||||||
[[ $? -eq 0 ]] && shift
|
[[ $? -eq 0 ]] && shift
|
||||||
do_pretty_json=true
|
do_pretty_json=true
|
||||||
|
|
Loading…
Reference in New Issue