fix: empty commands

This commit is contained in:
iff 2025-04-09 17:24:19 +02:00
parent b5c19f9a36
commit e5da2e3e6a
2 changed files with 17 additions and 0 deletions

View file

@ -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;
}