1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

mkdir: exit with error if no directory given

This commit is contained in:
Michael Gehring 2014-05-18 12:15:49 +02:00
parent d34d85ae37
commit 49f44b837d

View file

@ -79,6 +79,9 @@ fn main() {
};
let dirs = matches.free;
if dirs.is_empty() {
crash!(1, "missing operand");
}
exec(dirs, mk_parents, mode, verbose_flag);
}