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
1 changed files with 1 additions and 1 deletions

View File

@ -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