aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-08-10 01:55:00 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-08-10 01:55:00 -0700
commit355bfb879de7e42215dd3f3a3631301705420715 (patch)
tree8dd6c349e3db62cf1d097e73d38d9dc6be6da4a5
parent322bee0aac0f177127e4a33aff94a5fa2158a0f9 (diff)
downloadnasm-355bfb879de7e42215dd3f3a3631301705420715.tar.gz
nasm-355bfb879de7e42215dd3f3a3631301705420715.tar.xz
nasm-355bfb879de7e42215dd3f3a3631301705420715.zip
Stylistic improvements to help text
Trivial stylistic improvements to the help text. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--asm/nasm.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index b92c42ef..6d73a5f5 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -1968,7 +1968,7 @@ static void nasm_verror_asm(errflags severity, const char *fmt, va_list args)
static void usage(void)
{
- fputs("type `nasm -h' for help\n", error_file);
+ fprintf(error_file, "Type %s -h for help.\n", _progname);
}
static void help(FILE *out)
@@ -1976,19 +1976,16 @@ static void help(FILE *out)
int i;
fprintf(out,
- "Usage: %s [-@ response file] [options...] [--] filename\n"
- " %s -v (or --v)\n"
- "\n",
+ "Usage: %s [-@ response_file] [options...] [--] filename\n"
+ " %s -v (or --v)\n",
_progname, _progname);
fputs(
"\n"
- "Response files should contain command line parameters,\n"
- "one per line.\n"
- "\n"
- "Values in brackets indicate defaults\n"
+ "Options (values in brackets indicate defaults):\n"
"\n"
" -h show this text and exit (also --help)\n"
- " -v print the NASM version number and exit\n"
+ " -v (or --v) print the NASM version number and exit\n"
+ " -@ file response file; one command line option per line\n"
"\n"
" -o outfile write output to outfile\n"
" --keep-all output files will not be removed even if an error happens\n"