Cleanup usage() across sbase

Some tools didn't use argv0 for tool name, or usage() at all.
This commit is contained in:
Quentin Rameau
2015-12-21 18:36:28 +01:00
committed by sin
parent 00d7bf4ea5
commit 6e7743eb56
13 changed files with 20 additions and 17 deletions

5
ed.c
View File

@@ -13,7 +13,7 @@
#include <stdlib.h>
#include <string.h>
#include "arg.h"
#include "util.h"
#define REGEXSIZE 100
#define LINESIZE 80
@@ -1310,8 +1310,7 @@ doglobal(void)
static void
usage(void)
{
fputs("ed [-s][-p][file]\n", stderr);
exit(1);
eprintf("usage: %s [-s] [-p] [file]\n", argv0);
}
static void