Skip to content

Commit

Permalink
added --both option, and include all options in --help output.
Browse files Browse the repository at this point in the history
simplified implementation of display() using guard clauses
  • Loading branch information
gbicann committed Jun 14, 2024
1 parent 6f76150 commit 01b1a63
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 138 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.03 - 2024-XX-YY:
- added --both option, and include all options in --help output.
- simplified implementation of display() using guard clauses

1.02 - 2024-06-07:
- update to support Net::RDAP 0.25 and display unstructured postal addresses.

Expand Down
36 changes: 17 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,24 @@ but you must use the `--type=nameserver` argument to disambiguate
from domain names. The RDAP server of the parent domain's registry will
be queried.

# ADDITIONAL ARGUMENTS

- `--registrar` - follow referral to the registrar's RDAP record
(if any) which will be displayed instead of the registry record.
- `--reverse` - if you provide an IP address or CIDR prefix, then
this option causes `rdapper` to display the record of the corresponding
- `--registrar` - follow referral to the registrar's RDAP record (if any)
which will be displayed instead of the registry record.
- `--both` - display both the registry and (if any) registrar RDAP
records (implies `--registrar`).
- `--reverse` - if you provide an IP address or CIDR prefix, then this
option causes `rdapper` to display the record of the corresponding
`in-addr.arpa` or `ip6.arpa` domain.
- `--type=TYPE` - explicitly set the object type. `rdapper`
will guess the type by pattern matching the value of `OBJECT` but
you can override this by explicitly setting the `--type` argument
to one of : `ip`, `autnum`, `domain`, `nameserver`, `entity`
or `url`.
- If `--type=url` is used, `rdapper` will directly fetch the
specified URL and attempt to process it as an RDAP response. If the URL
path ends with `/help` then the response will be treated as a "help"
query response (if you want to see the record for the .help TLD, use
`--type=tld help`).
- If `--type=entity` is used, `OBJECT` must be a a string
containing a "tagged" handle, such as `ABC123-EXAMPLE`, as per
RFC 8521.
- `--type=TYPE` - explicitly set the object type. `rdapper` will guess
the type by pattern matching the value of `OBJECT` but you can override this by
explicitly setting the `--type` argument to one of : `ip`, `autnum`,
`domain`, `nameserver`, `entity` or `url`.
- If `--type=url` is used, `rdapper` will directly fetch the specified
URL and attempt to process it as an RDAP response. If the URL path ends with
`/help` then the response will be treated as a "help" query response (if you
want to see the record for the .help TLD, use `--type=tld help`).
- If `--type=entity` is used, `OBJECT` must be a a string containing a
"tagged" handle, such as `ABC123-EXAMPLE`, as per [RFC
8521](https://datatracker.ietf.org/doc/html/rfc8521).
- `--help` - display help message.
- `--version` - display package and version.
- `--raw` - print the raw JSON rather than parsing it.
Expand Down
Loading

0 comments on commit 01b1a63

Please sign in to comment.