mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-08 04:25:31 +00:00
14 lines
308 B
Rust
14 lines
308 B
Rust
use ouch::{commands, Opts, Result};
|
|
|
|
fn main() {
|
|
if let Err(err) = run() {
|
|
println!("{}", err);
|
|
std::process::exit(ouch::EXIT_FAILURE);
|
|
}
|
|
}
|
|
|
|
fn run() -> Result<()> {
|
|
let (args, skip_questions_positively) = Opts::parse_args()?;
|
|
commands::run(args, skip_questions_positively)
|
|
}
|