sed: Add usage

This commit is contained in:
Pieter Kockx 2017-10-25 09:55:50 +02:00 committed by Michael Forney
parent 38cc01b887
commit a0a8791704

4
sed.c
View File

@ -355,7 +355,9 @@ leprintf(char *s)
static void static void
usage(void) usage(void)
{ {
eprintf("USAGE\n"); eprintf("usage: sed [-nrE] script [file ...]\n"
" sed [-nrE] -e script [-e script] ... [-f scriptfile] ... [file ...]\n"
" sed [-nrE] [-e script] ... -f scriptfile [-f scriptfile] ... [file ...]\n");
} }
/* Differences from POSIX /* Differences from POSIX