Skip to content

Commit

Permalink
add usage error message
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriltovena committed Jul 12, 2022
1 parent 191f3a0 commit 3d8f90c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/parquet-tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (
)

func main() {
if len(os.Args) < 2 {
fmt.Println("Usage: parquet-tool <file>")
os.Exit(1)
}
f, err := os.Open(os.Args[1])
if err != nil {
panic(err)
Expand Down

0 comments on commit 3d8f90c

Please sign in to comment.