output: add --no-column flag
This disables columns in the output if they were otherwise enabled. Fixes #880
This commit is contained in:
@@ -689,6 +689,9 @@ impl<'a> ArgMatches<'a> {
|
||||
|
||||
/// Returns true if and only if column numbers should be shown.
|
||||
fn column(&self) -> bool {
|
||||
if self.is_present("no-column") {
|
||||
return false;
|
||||
}
|
||||
self.is_present("column") || self.is_present("vimgrep")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user