From 45eafd239f5ecc96a9735833362d452662797a25 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Tue, 7 Jul 2020 07:30:48 -0400 Subject: [PATCH] Fix printing of unrecognized option 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 416080d..fe3ef22 100755 --- a/testssl.sh +++ b/testssl.sh @@ -21693,7 +21693,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