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);
}