Skip to content

Commit af38a35

Browse files
committed
Fix CLI command name (#1207)
1 parent 0038ab5 commit af38a35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/root.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package cmd
33
import (
44
"fmt"
55
"os"
6+
"path/filepath"
67
"runtime"
78

89
"github.com/exercism/cli/api"
@@ -42,7 +43,7 @@ func Execute() {
4243
}
4344

4445
func getCommandName() string {
45-
return os.Args[0]
46+
return filepath.Base(os.Args[0])
4647
}
4748

4849
func init() {

0 commit comments

Comments
 (0)