mm(1): fixes mm without arguments not working
This commit is contained in:
parent
2a75b8f820
commit
d89707a47c
@ -131,6 +131,11 @@ fn main() -> ExitCode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ins.is_empty() && outs.is_empty() && argv.len() > optind {
|
||||||
|
eprintln!("Usage: {}", usage);
|
||||||
|
return ExitCode::from(EX_USAGE as u8);
|
||||||
|
}
|
||||||
|
|
||||||
/* use stdin if no inputs are specified */
|
/* use stdin if no inputs are specified */
|
||||||
if ins.is_empty() { ins.push("-".to_string()); }
|
if ins.is_empty() { ins.push("-".to_string()); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user