diff options
| -rw-r--r-- | src/main.rs | 33 | 
1 files changed, 29 insertions, 4 deletions
| diff --git a/src/main.rs b/src/main.rs index b6633ac..ab66848 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,10 +34,29 @@ macro_rules! unwrap {      };  } -/// A program that allows you to search through all your evtc logs for specific -/// people. +/// A program that allows you to search through all your evtc logs for specific people. +/// +/// raidgrep supports different predicates that determine whether a log is included or not. +/// Predicates start with a - and optionally take an argument. Predicates can be combined with +/// "and", "or" and "not", and predicates that operate on single players (instead of logs) have to +/// be within an "all(player: ...)" or "any(player: ...)" construct. +/// +/// PREDICATES: +/// +///     -character REGEX	True if the character name matches the regex. +///     -account REGEX  	True if the account name matches the regex. +///     -name REGEX     	True if either character or account name match. +/// +///     -success        	Only include successful logs. +///     -wipe           	Only include failed logs. +///     -outcome OUTCOMES	Only include logs with the given outcomes. +///     -weekday WEEKDAYS	Only include logs from the given weekdays. +///     -before DATE    	Only include logs from before the given date. +///     -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.  #[derive(StructOpt, Debug)] -#[structopt(name = "raidgrep")] +#[structopt(verbatim_doc_comment)]  pub struct Opt {      /// Path to the folder with logs.      #[structopt(short = "d", long = "dir", default_value = ".", parse(from_os_str))] @@ -56,14 +75,20 @@ pub struct Opt {      debug: bool,      /// Load guild information from the API. +    /// +    /// Loading guild information requires network access and slows down the program considerably, +    /// so this is disabled by default.      #[structopt(long = "guilds")]      guilds: bool,      /// Run the REPL. +    /// +    /// The REPL will allow you to keep entering queries which are being searched by raidgrep, +    /// until you manually exit with Crtl+C.      #[structopt(long)]      repl: bool, -    /// The filter expression. +    /// The filter expression, see PREDICATES for more information.      expression: Vec<String>,  } | 
