BM: Add support for un-pretty tables

This commit is contained in:
Matthias Beyer 2016-01-06 19:56:06 +01:00
parent 75dfc2b097
commit 24c150852c
2 changed files with 8 additions and 1 deletions

View File

@ -91,6 +91,12 @@ subcommands:
version: 0.1
author: Matthias Beyer <mail@beyermatthias.de>
args:
- pretty:
long: pretty
help: Print table with ASCII-border
required: false
takes_value: false
- match:
short: m
long: match

View File

@ -130,7 +130,8 @@ impl<'a> BM<'a> {
.load_for_module(self, &self.parser)
.into_iter()
.filter(|file| filter.filter_file(file));
let printer = TablePrinter::new(self.rt.is_verbose(), self.rt.is_debugging(), true);
let pretty = matches.is_present("pretty");
let printer = TablePrinter::new(self.rt.is_verbose(), self.rt.is_debugging(), pretty);
printer.print_files_custom(files,
&|file| {