mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-26 09:42:00 -07:00
cli: add engine flag
This permits switching between the different regex engine modes that ripgrep supports. The purpose of this flag is to make it easier to extend ripgrep with additional regex engines. Closes #1488, Closes #1502
This commit is contained in:
@@ -582,7 +582,8 @@ impl ArgMatches {
|
||||
} else if self.is_present("auto-hybrid-regex") {
|
||||
self.matcher_engine("auto", patterns)
|
||||
} else {
|
||||
self.matcher_engine("default", patterns)
|
||||
let engine = self.value_of_lossy("engine").unwrap();
|
||||
self.matcher_engine(&engine, patterns)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user