Print usage via fprintf(stderr, ..) instead of errx() to avoid progname prefix.
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
This commit is contained in:
parent
820165ecfd
commit
d37fcb98e3
@ -309,6 +309,7 @@ newfile()
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
errx(EX_USAGE,
|
||||
"usage: split [-b byte_count] [-l line_count] [-p pattern] [file [prefix]]");
|
||||
(void)fprintf(stderr,
|
||||
"usage: split [-b byte_count] [-l line_count] [-p pattern] [file [prefix]]\n");
|
||||
exit(EX_USAGE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user