Skip to content

Commit

Permalink
Fix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen428 committed Apr 30, 2022
1 parent ae181e6 commit 6e22e88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ func parseFlags() {
}

func printUsage() {
prog := path.Base(cmd)
fmt.Fprintf(flag.CommandLine.Output(), "Usage:\n %s cmd [options]\n\nOptions:\n", prog)
fmt.Fprintln(flag.CommandLine.Output(), "Usage:\n repl cmd [options]\n\nOptions:")
flag.PrintDefaults()
os.Exit(0)
}
Expand Down

0 comments on commit 6e22e88

Please sign in to comment.