class documentation

class BadOptionUsage(UsageError):

View In Hierarchy

Raised if an option is generally supplied but the use of the option was incorrect. This is for instance raised if the number of arguments for an option is not correct.

New in version 4.0.
Parameters
option​_namethe name of the option being used incorrectly.
Method __init__ Undocumented
Instance Variable option​_name Undocumented

Inherited from UsageError:

Method show Undocumented
Class Variable exit​_code Undocumented
Instance Variable cmd Undocumented
Instance Variable ctx Undocumented

Inherited from ClickException (via UsageError):

Method __str__ Undocumented
Method format​_message Undocumented
Instance Variable message Undocumented
def __init__(self, option_name, message, ctx=None):

Undocumented

Parameters
option​_name:strUndocumented
message:strUndocumented
ctx:t.Optional[Context]Undocumented
option_name =

Undocumented