Better error print when no print parameters passed
This commit is contained in:
parent
baa19a4319
commit
c8e364512a
@ -21,7 +21,7 @@ fn main() {
|
|||||||
clean,
|
clean,
|
||||||
} => {
|
} => {
|
||||||
if !all && !is_day && !temperature && !windspeed && !winddirection {
|
if !all && !is_day && !temperature && !windspeed && !winddirection {
|
||||||
eprintln!("[ERROR] Please provide at least one parameter to print");
|
eprintln!("[ERROR] Provide at least one parameter to print, check --help");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user