Skip to content

Commit

Permalink
Update README to account for cobra-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
rpearce committed Oct 17, 2022
1 parent 6120213 commit 12a25c5
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@ CLI tool get HTTP status code information.
_This is a tool for me to learn Go, so you probably shouldn't use this._

```
λ httpwut -h
Get HTTP status code information
usage: httpwut [100..511] [-v|--verbose] [-c|--cats] [-d|--dogs]
λ httpwut is -h
Lookup HTTP status codes
λ httpwut 502
Usage:
httpwut is [flags]
Flags:
-c, --cats Open HTTP Status Cats webpage for status
-d, --dogs Open HTTP Status Dogs webpage for status
-h, --help help for is
-v, --verbose Print status code description and URL
λ httpwut is 502
502 - Bad Gateway
λ httpwut 502 --verbose
λ httpwut is 502 --verbose
502 - Bad Gateway
The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.
https://www.rfc-editor.org/rfc/rfc9110.html#name-502-bad-gateway
Expand Down

0 comments on commit 12a25c5

Please sign in to comment.