diff options
author | Daniel <kingdread@gmx.de> | 2020-04-25 13:22:00 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-04-25 13:22:00 +0200 |
commit | 9bbd5db2a6caae10f0ab2cf2625fbc34485a4ce9 (patch) | |
tree | 63544e8764b55563a48d3f9fd530b0381f42a277 /src | |
parent | 5dbea93266c3a30dac5ec6f5a7915d73a440f573 (diff) | |
download | raidgrep-9bbd5db2a6caae10f0ab2cf2625fbc34485a4ce9.tar.gz raidgrep-9bbd5db2a6caae10f0ab2cf2625fbc34485a4ce9.tar.bz2 raidgrep-9bbd5db2a6caae10f0ab2cf2625fbc34485a4ce9.zip |
add -include and -exclude
Diffstat (limited to 'src')
-rw-r--r-- | src/fexpr/grammar.lalrpop | 3 | ||||
-rw-r--r-- | src/main.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop index d8f64fa..58ec052 100644 --- a/src/fexpr/grammar.lalrpop +++ b/src/fexpr/grammar.lalrpop @@ -54,6 +54,9 @@ LogPredicate: Box<dyn filters::log::LogFilter> = { "-boss" <Comma<Boss>> => filters::log::boss(<>), + "-include" => filters::constant(true), + "-exclude" => filters::constant(false), + "-player" <Regex> => filters::player::any( filters::player::character(<>.clone()) | filters::player::account(<>) diff --git a/src/main.rs b/src/main.rs index 50dcf8d..231fbdc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,6 +57,8 @@ macro_rules! unwrap { /// -after DATE Only include logs from after the given date. /// -boss BOSSES Only include logs from the given bosses. /// -player REGEX Shorthand to check if any player in the log has the given name. +/// -include Always evaluates to including the log. +/// -exclude Always evaluates to excluding the log. #[derive(StructOpt, Debug)] #[structopt(verbatim_doc_comment)] pub struct Opt { |