diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-09 17:37:39 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-09 17:37:39 +0000 |
commit | a89237ae953b770c82cf9c1dbf192cc54e1dd5be (patch) | |
tree | f2459cf124e940897222cf3c2d1d840dc7a981a5 /bin/ed/main.c | |
parent | b3f44d7907dec84405f0aeeacbee5cfb3d39917e (diff) | |
download | src-a89237ae953b770c82cf9c1dbf192cc54e1dd5be.tar.gz src-a89237ae953b770c82cf9c1dbf192cc54e1dd5be.zip |
Sync program's usage() with manpage's SYNOPSIS.
Notes
Notes:
svn path=/head/; revision=141578
Diffstat (limited to 'bin/ed/main.c')
-rw-r--r-- | bin/ed/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ed/main.c b/bin/ed/main.c index 8e5f2211ed6c..807a3cc96bc3 100644 --- a/bin/ed/main.c +++ b/bin/ed/main.c @@ -99,7 +99,7 @@ int lineno; /* script line number */ const char *prompt; /* command-line prompt */ const char *dps = "*"; /* default command-line prompt */ -const char usage[] = "usage: %s [-] [-sx] [-p string] [name]\n"; +const char usage[] = "usage: %s [-] [-sx] [-p string] [file]\n"; /* ed: line editor */ int @@ -134,7 +134,7 @@ top: break; default: - fprintf(stderr, usage, argv[0]); + fprintf(stderr, usage, red ? "red" : "ed"); exit(1); } argv += optind; |