diff --git a/sys/src/cmd/walk.c b/sys/src/cmd/walk.c index 5296c310d..47a3670ff 100644 --- a/sys/src/cmd/walk.c +++ b/sys/src/cmd/walk.c @@ -266,6 +266,9 @@ main(int argc, char **argv) usage(); }ARGEND; + if(!printfiles && !printdirs) + sysfatal("mutually exclusive flags: -f and -d"); + fmtinstall('M', dirmodefmt); if((bout = Bfdopen(1, OWRITE)) == nil)