Skip to content

Commit

Permalink
revise search command docs
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Jun 28, 2024
1 parent eec513d commit 2774a19
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
41 changes: 22 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <START_TS> --end-ts <END_TS>
Usage: monocle search [OPTIONS] --start-ts <START_TS> --end-ts <END_TS>
OPTIONS:
-a, --as-path <AS_PATH> Filter by AS path regex string
-c, --collector <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 <PEER_IP> Filter by peer IP address
-J, --peer-asn <PEER_ASN> Filter by peer ASN
-m, --elem-type <ELEM_TYPE> Filter by elem type: announce (a) or withdraw (w)
-o, --origin-asn <ORIGIN_ASN> Filter by origin AS Number
-p, --prefix <PREFIX> Filter by network prefix
-P, --project <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 <START_TS> Filter by start unix timestamp inclusive
-T, --end-ts <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_PATH> SQLite output file path
--mrt-path <MRT_PATH> MRT output file path
--sqlite-reset SQLite reset database content if exists
-t, --start-ts <START_TS> Filter by start unix timestamp inclusive
-T, --end-ts <END_TS> Filter by end unix timestamp inclusive
-c, --collector <COLLECTOR> Filter by collector, e.g. rrc00 or route-views2
-P, --project <PROJECT> Filter by route collection project, i.e. riperis or routeviews
-o, --origin-asn <ORIGIN_ASN> Filter by origin AS Number
-p, --prefix <PREFIX> Filter by network prefix
-s, --include-super Include super-prefix when filtering
-S, --include-sub Include sub-prefix when filtering
-j, --peer-ip <PEER_IP> Filter by peer IP address
-J, --peer-asn <PEER_ASN> Filter by peer ASN
-m, --elem-type <ELEM_TYPE> Filter by elem type: announce (a) or withdraw (w)
-a, --as-path <AS_PATH> Filter by AS path regex string
-h, --help Print help
-V, --version Print version
```

### `monocle time`
Expand Down
2 changes: 1 addition & 1 deletion src/bin/monocle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ enum Commands {
#[clap(long)]
sqlite_path: Option<PathBuf>,

/// Path to output MRT file
/// MRT output file path
#[clap(long)]
mrt_path: Option<PathBuf>,

Expand Down

0 comments on commit 2774a19

Please sign in to comment.