mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +00:00
14 lines
313 B
Rust
14 lines
313 B
Rust
use ouch::{cli::Opts, commands, 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)
|
|
}
|