mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
mkdir: exit with error if no directory given
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user