We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diff --git a/src/cli/mod.rs b/src/cli/mod.rs index b28d59d..021a4d7 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -69,8 +69,10 @@ pub fn parse_cli_args() -> (String, Config) { let input_text: String = if opts.file.is_some() { read_and_parse_file(opts.file.unwrap()) } else { - opts.text - .expect("Error. No input was provided. Please use ares --help") + opts.text.unwrap_or_else(|| { + eprintln!("Error. No input was provided. Please use ares --help"); + std::process::exit(1); + }) }; // Fixes bug where opts.text and opts.file are partially borrowed
The text was updated successfully, but these errors were encountered:
Is this still relevant in 2025? Especially since we're reworking how to handle empty input in #310 anyways.
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: