walk: error on mutually exclusive flags

This commit is contained in:
Ori Bernstein 2024-12-12 20:35:58 +00:00
parent b8797a1cc6
commit d1b72a27b7

View file

@ -266,6 +266,9 @@ main(int argc, char **argv)
usage(); usage();
}ARGEND; }ARGEND;
if(!printfiles && !printdirs)
sysfatal("mutually exclusive flags: -f and -d");
fmtinstall('M', dirmodefmt); fmtinstall('M', dirmodefmt);
if((bout = Bfdopen(1, OWRITE)) == nil) if((bout = Bfdopen(1, OWRITE)) == nil)