-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch user error using --json/--html and friends
testssl.sh hiccups when a user supplied after --json*/--html/-csv a filename instead of using the corresponding --json*file/--htmlfile/-csvfile arguments, see #1397. This PR adresses that in a sense that it tries to detect to following argument of --json*/--html/-csv. If that matches a suspected filename it bails out using fatal(). This is not intended to be perfect (when the pattern doesn't match) but catches the user error in an early stage. See also #1398
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters