CliOption

class lib.gui.options.CliOption(panel_option: ControlPanelOption, opts: tuple[str, ...], nargs: Literal['+'] | None)

Bases: object

A parsed command line option

Parameters:
  • panel_option (ControlPanelOption:) – Object to hold information of a command line item for displaying in a GUI ControlPanel

  • opts (tuple[str, ...]:) – The short switch and long name (if exists) of the command line option

  • nargs (Literal["+"] | None:) – None for not used. “+” for at least 1 argument required with values to be contained in a list

nargs: Literal['+'] | None = <dataclasses._MISSING_TYPE object>

None for not used. “+” for at least 1 argument required with values to be contained in a list

Type:

Literal[“+”] | None

opts: tuple[str, ...] = <dataclasses._MISSING_TYPE object>

The short switch and long name (if exists) of cli option

Type:

tuple[str, …]

panel_option: ControlPanelOption = <dataclasses._MISSING_TYPE object>

Object to hold information of a command line item for displaying in a GUI ControlPanel

Type:

ControlPanelOption