Update usage line and manpage for du(1)
Do not allow -a and -s to be specified at the same time.
This commit is contained in:
5
du.c
5
du.c
@@ -23,7 +23,7 @@ static void print(long n, char *path);
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
eprintf("usage: %s [-a] [file...]\n", argv0);
|
||||
eprintf("usage: %s [-a | -s] [-k] [file...]\n", argv0);
|
||||
}
|
||||
|
||||
int
|
||||
@@ -46,6 +46,9 @@ main(int argc, char *argv[])
|
||||
usage();
|
||||
} ARGEND;
|
||||
|
||||
if (aflag && sflag)
|
||||
usage();
|
||||
|
||||
bsize = getenv("BLOCKSIZE");
|
||||
if (bsize)
|
||||
blksize = estrtol(bsize, 0);
|
||||
|
Reference in New Issue
Block a user