BM: Add support for un-pretty tables
This commit is contained in:
parent
75dfc2b097
commit
24c150852c
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue