Skip to content

Commit 84c3e11

Browse files
authored
bug: Use app slug in cli help menu (#2379)
Use app slug in cli help menu
1 parent 21f4438 commit 84c3e11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/installer/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package main
33
import (
44
"context"
55
"os"
6-
"path"
76
"syscall"
87

98
"github.com/mattn/go-isatty"
109
"github.com/replicatedhq/embedded-cluster/cmd/installer/cli"
1110
"github.com/replicatedhq/embedded-cluster/pkg/prompts"
11+
"github.com/replicatedhq/embedded-cluster/pkg/runtimeconfig"
1212
)
1313

1414
func main() {
@@ -18,7 +18,7 @@ func main() {
1818

1919
prompts.SetTerminal(isatty.IsTerminal(os.Stdout.Fd()))
2020

21-
name := path.Base(os.Args[0])
21+
name := runtimeconfig.BinaryName()
2222

2323
// set the umask to 022 so that we can create files/directories with 755 permissions
2424
// this does not return an error - it returns the previous umask

0 commit comments

Comments
 (0)