nasm: Add --version option

Alias for known -v shorthand.

Signed-off-by: Andy Willis <abwillis1@gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Andy Willis 2016-09-13 00:02:21 +03:00 committed by Cyrill Gorcunov
parent 7a82ebe7bd
commit 3f546034f3

View file

@ -951,6 +951,9 @@ set_warning:
if (!nasm_stricmp(p, "--v"))
show_version();
if (!nasm_stricmp(p, "--version"))
show_version();
for (s = 0; textopts[s].label; s++) {
if (!nasm_stricmp(p + 2, textopts[s].label)) {
break;