@@ -737,13 +737,15 @@ class Command(BaseCommand):
737737 shown on the command listing of the parent command.
738738 :param add_help_option: by default each command registers a ``--help``
739739 option. This can be disabled by this parameter.
740+ :param hint_help: by default the ``--help`` is mentioned in usage errors.
741+ This can be disabled by this parameter.
740742 :param hidden: hide this command from help outputs.
741743 """
742744
743745 def __init__ (self , name , context_settings = None , callback = None ,
744746 params = None , help = None , epilog = None , short_help = None ,
745747 options_metavar = '[OPTIONS]' , add_help_option = True ,
746- hidden = False ):
748+ hint_help = True , hidden = False ):
747749 BaseCommand .__init__ (self , name , context_settings )
748750 #: the callback to execute when the command fires. This might be
749751 #: `None` in which case nothing happens.
@@ -759,6 +761,7 @@ def __init__(self, name, context_settings=None, callback=None,
759761 short_help = make_default_short_help (help )
760762 self .short_help = short_help
761763 self .add_help_option = add_help_option
764+ self .hint_help = hint_help
762765 self .hidden = hidden
763766
764767 def get_usage (self , ctx ):
0 commit comments