diff --git a/README.md b/README.md index 490c1f1..056b898 100644 --- a/README.md +++ b/README.md @@ -113,26 +113,29 @@ MRT files in parallel. More filters can be used to search for messages that matc ➜ monocle git:(main) ✗ monocle search --help Search BGP messages from all available public MRT files -USAGE: - monocle search [OPTIONS] --start-ts --end-ts +Usage: monocle search [OPTIONS] --start-ts --end-ts -OPTIONS: - -a, --as-path Filter by AS path regex string - -c, --collector Filter by collector, e.g. rrc00 or route-views2 - -d, --debug Print debug information - -d, --dry-run Dry-run, do not download or parse - -h, --help Print help information - -j, --peer-ip Filter by peer IP address - -J, --peer-asn Filter by peer ASN - -m, --elem-type Filter by elem type: announce (a) or withdraw (w) - -o, --origin-asn Filter by origin AS Number - -p, --prefix Filter by network prefix - -P, --project Filter by route collection project, i.e. riperis or routeviews - -s, --include-super Include super-prefix when filtering - -S, --include-sub Include sub-prefix when filtering - -t, --start-ts Filter by start unix timestamp inclusive - -T, --end-ts Filter by end unix timestamp inclusive - -V, --version Print version information +Options: + --dry-run Dry-run, do not download or parse + --json Output as JSON objects + --pretty Pretty-print JSON output + --sqlite-path SQLite output file path + --mrt-path MRT output file path + --sqlite-reset SQLite reset database content if exists + -t, --start-ts Filter by start unix timestamp inclusive + -T, --end-ts Filter by end unix timestamp inclusive + -c, --collector Filter by collector, e.g. rrc00 or route-views2 + -P, --project Filter by route collection project, i.e. riperis or routeviews + -o, --origin-asn Filter by origin AS Number + -p, --prefix Filter by network prefix + -s, --include-super Include super-prefix when filtering + -S, --include-sub Include sub-prefix when filtering + -j, --peer-ip Filter by peer IP address + -J, --peer-asn Filter by peer ASN + -m, --elem-type Filter by elem type: announce (a) or withdraw (w) + -a, --as-path Filter by AS path regex string + -h, --help Print help + -V, --version Print version ``` ### `monocle time` diff --git a/src/bin/monocle.rs b/src/bin/monocle.rs index e4fc922..a9340ec 100644 --- a/src/bin/monocle.rs +++ b/src/bin/monocle.rs @@ -226,7 +226,7 @@ enum Commands { #[clap(long)] sqlite_path: Option, - /// Path to output MRT file + /// MRT output file path #[clap(long)] mrt_path: Option,