forked from bonsai/harakit
fop(1): fixes panic on no arguments
This commit is contained in:
@@ -61,6 +61,8 @@ fn main() -> ExitCode {
|
||||
}
|
||||
}
|
||||
|
||||
if argv.len() == 1 { return ExitCode::from(usage(&argv[0])); }
|
||||
|
||||
while let Some(opt) = argv.getopt("d:") {
|
||||
match opt.opt() {
|
||||
Ok("d") => {
|
||||
|
||||
Reference in New Issue
Block a user