mkdir: exit with error if no directory given

This commit is contained in:
Michael Gehring
2014-05-18 21:29:53 +02:00
parent d34d85ae37
commit 49f44b837d
+3
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);
}