summaryrefslogtreecommitdiff
path: root/src/options.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/options.rs b/src/options.rs
index 535eac4b..f341b5dd 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -175,6 +175,9 @@ pub fn builder_from_flags<I>(args: I)
.takes_value(true)
.multiple(true)
.number_of_values(1),
+ Arg::with_name("verbose")
+ .long("verbose")
+ .help("Print verbose error messages"),
]) // .args()
.get_matches_from(args);
@@ -346,5 +349,9 @@ pub fn builder_from_flags<I>(args: I)
Box::new(io::BufWriter::new(io::stdout())) as Box<io::Write>
};
+ if matches.is_present("verbose") {
+ builder = builder.verbose();
+ }
+
Ok((builder, output))
}