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

Merge pull request #179 from ebfe/mkdir

mkdir: exit with error if no directory given
This commit is contained in:
Arcterus 2014-05-18 12:43:16 -07:00
commit 795170de92

View file

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