We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e7856 commit c7e4e62Copy full SHA for c7e4e62
sh/src/main.rs
@@ -246,7 +246,13 @@ fn main() -> Result<(), Box<dyn Error>> {
246
textdomain("posixutils-rs")?;
247
bind_textdomain_codeset("posixutils-rs", "UTF-8")?;
248
249
- let args = parse_args(std::env::args().collect(), is_attached_to_terminal()).unwrap();
+ let args = match parse_args(std::env::args().collect(), is_attached_to_terminal()) {
250
+ Ok(args) => args,
251
+ Err(err) => {
252
+ eprintln!("{err}");
253
+ std::process::exit(1);
254
+ }
255
+ };
256
let mut shell = Shell::initialize_from_system(
257
args.program_name,
258
args.arguments,
0 commit comments