O2-DQ User Interface 1.0.0
Loading...
Searching...
No Matches
ChoicesAction Class Reference
Inheritance diagram for ChoicesAction:

Public Member Functions

def add_choice (self, choice, help="")
 

Public Attributes

 choices
 

Detailed Description

ChoicesAction class is used to add extra choices
to a parseargs choices list

Args:
    argparse (Class): Input as args

Definition at line 38 of file actionHandler.py.

Member Function Documentation

◆ add_choice()

def add_choice (   self,
  choice,
  help = "" 
)

Definition at line 48 of file actionHandler.py.

48 def add_choice(self, choice, help = ""):
49 if self.choices is None:
50 self.choices = []
51 self.choices.append(choice)
52 self.container.add_argument(choice, help = help, action = "none")

Member Data Documentation

◆ choices

choices

Definition at line 50 of file actionHandler.py.


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