diff options
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index 68b8ca09..a968617f 100644 --- a/src/args.rs +++ b/src/args.rs @@ -434,6 +434,9 @@ impl<'a> ArgMatches<'a> { /// /// If any pattern is invalid UTF-8, then an error is returned. fn patterns(&self) -> Result<Vec<String>> { + if self.is_present("files") || self.is_present("type-list") { + return Ok(vec![self.empty_pattern()]); + } let mut pats = vec![]; match self.values_of_os("regexp") { None => { |