From cb5305e42d5b458c2ce2d265cfc20a710ce8dca3 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Tue, 7 Jul 2020 07:39:28 -0400 Subject: [PATCH] Fix printing of unrecognized option in 3.0 branch When testssl.sh is called with an unknown option it prints something like: 0: unrecognized option "--option" It should be printing the name of the program rather than "0". This commit fixes that. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 22107cf..0f2a7c0 100755 --- a/testssl.sh +++ b/testssl.sh @@ -19874,7 +19874,7 @@ parse_cmd_line() { (--) shift break ;; - (-*) tmln_warning "0: unrecognized option \"$1\"" 1>&2; + (-*) tmln_warning "$0: unrecognized option \"$1\"" 1>&2; help 1 ;; (*) break