mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
mkdir: exit with error if no directory given
This commit is contained in:
parent
d34d85ae37
commit
49f44b837d
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue