diff options
author | Daniel <kingdread@gmx.de> | 2020-05-14 16:08:51 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-05-14 16:08:51 +0200 |
commit | e2d23d4b76000263e9f939637353bbc4bb9289fd (patch) | |
tree | 4aa7c00b87eec09ee1faca957be508efe3dbbb65 | |
parent | 61889e2d289a6d0d83d55afc9b1c98e6dd112249 (diff) | |
download | raidgrep-e2d23d4b76000263e9f939637353bbc4bb9289fd.tar.gz raidgrep-e2d23d4b76000263e9f939637353bbc4bb9289fd.tar.bz2 raidgrep-e2d23d4b76000263e9f939637353bbc4bb9289fd.zip |
add documentation about --sort
-rw-r--r-- | raidgrep.1.asciidoc | 12 | ||||
-rw-r--r-- | src/main.rs | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/raidgrep.1.asciidoc b/raidgrep.1.asciidoc index 30e0b2f..584713e 100644 --- a/raidgrep.1.asciidoc +++ b/raidgrep.1.asciidoc @@ -48,6 +48,18 @@ command line: *-d* 'path', *--dir* 'path':: Path to the folder with logs [default: .] +*-s* 'sorting', *--sort* 'sorting':: + Sort the output according to the given fields. Valid fields are 'boss', + 'date', 'cm' and 'outcome'. Fields can be comma-separated, then later + fields are used to break ties. Fields can be prefixed by ~ to indicate + sorting in the opposite direction. + + + + Note that using this option will cause raidgrep to buffer all results until + the search has finished, which means that no output will happen until every + file has been searched. It can also lead to a higher memory consumption, + based on how many logs are matched. Therefore, it is advised that you do + not use this option unless needed. + + == PREDICATES The following predicates can be used after the options. Note that they should diff --git a/src/main.rs b/src/main.rs index 43a6f59..84d1063 100644 --- a/src/main.rs +++ b/src/main.rs @@ -81,6 +81,9 @@ pub struct Opt { no_color: bool, /// Sort the output. + /// + /// Valid sorting fields are date, boss, cm and outcome. Prefix the field with ~ to sort in + /// descending order. #[structopt(short = "s", long = "sort")] sorting: Option<Sorting>, |