mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
fix: empty commands
This commit is contained in:
parent
b5c19f9a36
commit
e5da2e3e6a
2 changed files with 17 additions and 0 deletions
|
|
@ -224,6 +224,10 @@ impl Data {
|
|||
}
|
||||
#[cfg(debug_assertions)]
|
||||
eprintln!("split: {:?}", split);
|
||||
if split.is_empty() {
|
||||
eprintln!("{}", t!("empty-command"));
|
||||
exit(1);
|
||||
}
|
||||
self.split = split;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue