mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-04 07:45:27 +01:00 
			
		
		
		
	Merge branch '2.9dev' into hpkp_bugfix
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user