|
|
@ -134,11 +134,6 @@ change in the future.
|
|
|
|
Exec: func(context.Context, []string) error { return flag.ErrHelp },
|
|
|
|
Exec: func(context.Context, []string) error { return flag.ErrHelp },
|
|
|
|
UsageFunc: usageFunc,
|
|
|
|
UsageFunc: usageFunc,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for _, c := range rootCmd.Subcommands {
|
|
|
|
|
|
|
|
if c.UsageFunc == nil {
|
|
|
|
|
|
|
|
c.UsageFunc = usageFunc
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if envknob.UseWIPCode() {
|
|
|
|
if envknob.UseWIPCode() {
|
|
|
|
rootCmd.Subcommands = append(rootCmd.Subcommands,
|
|
|
|
rootCmd.Subcommands = append(rootCmd.Subcommands,
|
|
|
|
idTokenCmd,
|
|
|
|
idTokenCmd,
|
|
|
@ -156,6 +151,12 @@ change in the future.
|
|
|
|
rootCmd.Subcommands = append(rootCmd.Subcommands, configureHostCmd)
|
|
|
|
rootCmd.Subcommands = append(rootCmd.Subcommands, configureHostCmd)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for _, c := range rootCmd.Subcommands {
|
|
|
|
|
|
|
|
if c.UsageFunc == nil {
|
|
|
|
|
|
|
|
c.UsageFunc = usageFunc
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if err := rootCmd.Parse(args); err != nil {
|
|
|
|
if err := rootCmd.Parse(args); err != nil {
|
|
|
|
if errors.Is(err, flag.ErrHelp) {
|
|
|
|
if errors.Is(err, flag.ErrHelp) {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|