1
0
forked from bonsai/harakit

fop(1): fixes panic on no arguments

This commit is contained in:
2024-08-28 18:05:56 -06:00
parent 8d00fa0afd
commit f50bfeea92
2 changed files with 3 additions and 0 deletions

View File

@@ -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") => {