OpenQuizz
Une application de gestion des contenus pédagogiques
BadOptionUsage Class Reference
Inheritance diagram for BadOptionUsage:
Collaboration diagram for BadOptionUsage:

Public Member Functions

def __init__ (self, option_name, message, ctx=None)
 
- Public Member Functions inherited from UsageError
def __init__ (self, message, ctx=None)
 
def show (self, file=None)
 
- Public Member Functions inherited from ClickException
def __init__ (self, message)
 
def format_message (self)
 
def __str__ (self)
 
def __str__ (self)
 

Data Fields

 option_name
 
- Data Fields inherited from UsageError
 ctx
 
 cmd
 
- Data Fields inherited from ClickException
 message
 

Additional Inherited Members

- Static Public Attributes inherited from UsageError
int exit_code = 2
 
- Static Public Attributes inherited from ClickException
int exit_code = 1
 

Detailed Description

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.

.. versionadded:: 4.0

:param option_name: the name of the option being used incorrectly.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  option_name,
  message,
  ctx = None 
)

Field Documentation

◆ option_name

option_name

The documentation for this class was generated from the following file: