Skip to content

Commit 7598017

Browse files
committed
minor fix on help message
1 parent 14e6ef8 commit 7598017

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/manifoldco/promptui"
88
"log"
99
"os"
10+
"path/filepath"
1011
"strings"
1112
)
1213

@@ -33,7 +34,7 @@ var (
3334

3435
func main() {
3536
flag.Usage = func() {
36-
_, _ = fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s [options] [target] [command]\n", os.Args[0])
37+
_, _ = fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s [options] [target] [command]\n", filepath.Base(os.Args[0]))
3738
_, _ = fmt.Fprintf(flag.CommandLine.Output(), "options\n")
3839
flag.PrintDefaults()
3940
}

0 commit comments

Comments
 (0)