Skip to content

Commit cda23a7

Browse files
committed
fix
1 parent dfd47ce commit cda23a7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cmd/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ func NewMainApp(appVer AppVersion) *cli.Command {
127127
Version: appVer.Version + appVer.Extra,
128128
EnableShellCompletion: true,
129129
}
130-
app.FullName()
131130

132131
// these sub-commands need to use config file
133132
subCmdWithConfig := []*cli.Command{

cmd/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func makePathOutput(workPath, customPath, customConf string) string {
3131
func newTestApp(testCmdAction cli.ActionFunc) *cli.Command {
3232
app := NewMainApp(AppVersion{})
3333
testCmd := &cli.Command{Name: "test-cmd", Action: testCmdAction}
34-
prepareSubcommandWithGlobalFlags(testCmd, appGlobalFlags())
34+
prepareSubcommandWithGlobalFlags(testCmd)
3535
app.Commands = append(app.Commands, testCmd)
3636
app.DefaultCommand = testCmd.Name
3737
return app

0 commit comments

Comments
 (0)