mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 20:15:27 +00:00
17 lines
325 B
Rust
17 lines
325 B
Rust
use ouch::{
|
|
cli::{parse_args, ParsedArgs},
|
|
commands, Result,
|
|
};
|
|
|
|
fn main() {
|
|
if let Err(err) = run() {
|
|
println!("{}", err);
|
|
std::process::exit(ouch::EXIT_FAILURE);
|
|
}
|
|
}
|
|
|
|
fn run() -> crate::Result<()> {
|
|
let ParsedArgs { command, flags } = parse_args()?;
|
|
commands::run(command, &flags)
|
|
}
|