Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mkenney committed Jun 25, 2020
1 parent 596ecc9 commit ec403ea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified bin/darwin-amd64/didyoumean
Binary file not shown.
Binary file modified bin/linux-amd64/didyoumean
Binary file not shown.
4 changes: 2 additions & 2 deletions cmd/didyoumean/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func main() {
var cmdStatus int

if 1 == len(os.Args) {
help(path.Base(os.Args[0]))
help(os.Args[0])
os.Exit(1)
}
args := os.Args[1:]
Expand Down Expand Up @@ -137,5 +137,5 @@ func handleErr(err error, status int) int {

//
func help(name string) {
fmt.Println("Usage:\n ", name, "<command> [arguments]")
fmt.Println("Usage:\n ", path.Base(name), "<command> [arguments]")
}

0 comments on commit ec403ea

Please sign in to comment.