Rename -E option to -Z.

"-E" is too easily typoed for "-e", and is dangerous because it overwrites
the following filename.  "-E" is retained as a synonym for "-e".

This change also makes yasm command-line consistent with NASM.
This commit is contained in:
Peter Johnson 2014-10-05 10:10:08 -07:00
parent d7abe469f5
commit 85b88de12d
2 changed files with 4 additions and 2 deletions

View file

@ -185,7 +185,7 @@ static opt_option options[] =
N_("inhibits warning messages"), NULL },
{ 'W', NULL, 0, opt_warning_handler, 0,
N_("enables/disables warning"), NULL },
{ 'E', NULL, 1, opt_error_file, 0,
{ 'Z', NULL, 1, opt_error_file, 0,
N_("redirect error messages to file"), N_("file") },
{ 's', NULL, 0, opt_error_stdout, 0,
N_("redirect error messages to stdout"), NULL },

View file

@ -180,12 +180,14 @@ static opt_option options[] =
N_("enables/disables warning"), NULL },
{ 'M', NULL, 0, opt_makedep_handler, 0,
N_("generate Makefile dependencies on stdout"), NULL },
{ 'E', NULL, 1, opt_error_file, 0,
{ 'Z', NULL, 1, opt_error_file, 0,
N_("redirect error messages to file"), N_("file") },
{ 's', NULL, 0, opt_error_stdout, 0,
N_("redirect error messages to stdout"), NULL },
{ 'e', "preproc-only", 0, preproc_only_handler, 0,
N_("preprocess only (writes output to stdout by default)"), NULL },
{ 'E', NULL, 0, preproc_only_handler, 0,
N_("preprocess only (writes output to stdout by default)"), NULL },
{ 'i', NULL, 1, opt_include_option, 0,
N_("add include path"), N_("path") },
{ 'I', NULL, 1, opt_include_option, 0,