1 // Macros should be declared first
13 /// CLI argparsing definitions, using `clap`.
16 use error::{Error, Result};
17 use opts::{Opts, Subcommand};
18 use utils::{QuestionAction, QuestionPolicy};
20 /// The status code returned from `ouch` on error
21 pub const EXIT_FAILURE: i32 = libc::EXIT_FAILURE;
24 if let Err(err) = run() {
26 std::process::exit(EXIT_FAILURE);
30 fn run() -> Result<()> {
31 let (args, skip_questions_positively, file_visibility_policy) = Opts::parse_args()?;
32 commands::run(args, skip_questions_positively, file_visibility_policy)