diff --git a/cmd/address-resolver/address-resolver.go b/cmd/address-resolver/address-resolver.go index 6136cdde..7c600fa0 100644 --- a/cmd/address-resolver/address-resolver.go +++ b/cmd/address-resolver/address-resolver.go @@ -9,9 +9,7 @@ import ( ) func init() { - var helpflag bool commands.RootCmd.SetUsageTemplate(help) - commands.RootCmd.PersistentFlags().BoolVarP(&helpflag, "help", "h", false, "help for dmsgpty-cli") commands.RootCmd.SetHelpCommand(&cobra.Command{Hidden: true}) commands.RootCmd.PersistentFlags().MarkHidden("help") //nolint }