| commit | 9a9ce4c72a8b1b67eb83e5f56f9b4d44c3869573 | [log] [tgz] |
|---|---|---|
| author | David Brazdil <dbrazdil@google.com> | Mon Nov 09 09:42:07 2020 +0000 |
| committer | David Brazdil <dbrazdil@google.com> | Mon Nov 09 09:51:45 2020 +0000 |
| tree | 5aafa61b91728a11bffa27414a16863b5d3a0adf | |
| parent | 0313471e20fab6b438b2f8237727696f2a216090 [diff] |
Fix error message for invalid command line opts
When a command line option is not recognized, the error message across
our build scripts would indirectly dereference OPTIND. This is incorrect
and likely to result in an unbound variable exception.
Replace with printing '-${OPTARG}'.
Change-Id: I191645b876c0bd32a29758d1ac7c31c9a5b7f6b3