Skip to content

Commit

Permalink
Fix waldump usage
Browse files Browse the repository at this point in the history
  • Loading branch information
banks committed Mar 30, 2023
1 parent 9f1b7ae commit 8b98e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/waldump/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ debugging.
## Usage

```
$ waldump /path/to/wal/dir [-after INDEX] [-before INDEX]
$ waldump [-after INDEX] [-before INDEX] /path/to/wal/dir
...
{"Index":227281,"Term":4,"Type":0,"Data":"hpGEpUNvb3JkhKpBZGp1c3RtZW50yz7pEPrkTc4tpUVycm9yyz/B4NJg87MZpkhlaWdodMs/ABkEWHeDZqNWZWOYyz8FyF63P/XOyz8Fe2fyqYpayz7eXgvdsOWVyz7xX/ARy9MByz7XZq0fmx5eyz7x8ic7zxhJy78EgvusSgKUy77xVfw2sEr5pE5vZGWiczGpUGFydGl0aW9uoKdTZWdtZW50oA==","Extensions":null,"AppendedAt":"2023-03-23T12:24:05.440317Z"}
...
Expand Down
2 changes: 1 addition & 1 deletion cmd/waldump/waldump.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func main() {
// Accept dir as positional arg
o.Dir = flag.Arg(0)
if o.Dir == "" {
fmt.Println("Usage: waldump <path to WAL dir> [-after INDEX] [-before INDEX]")
fmt.Println("Usage: waldump [-after INDEX] [-before INDEX] <path to WAL dir>")
os.Exit(1)
}

Expand Down

0 comments on commit 8b98e5f

Please sign in to comment.