1
0
mirror of https://github.com/drwetter/testssl.sh.git synced 2025-06-05 22:58:35 +02:00

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.
This commit is contained in:
David Cooper 2020-07-07 07:30:48 -04:00
parent d881140cac
commit 45eafd239f

@ -21693,7 +21693,7 @@ parse_cmd_line() {
(--) shift (--) shift
break break
;; ;;
(-*) tmln_warning "0: unrecognized option \"$1\"" 1>&2; (-*) tmln_warning "$0: unrecognized option \"$1\"" 1>&2;
help 1 help 1
;; ;;
(*) break (*) break