pynenc.cli.namespace

Module Contents

Classes

PynencCLINamespace

A dataclass for holding command line arguments in the Pynenc CLI.

API

class pynenc.cli.namespace.PynencCLINamespace(**kwargs)[source]

Bases: argparse.Namespace

A dataclass for holding command line arguments in the Pynenc CLI.

This class is a custom namespace for parsing command line arguments using argparse. It extends the functionality of argparse.Namespace by explicitly defining fields for expected arguments. This approach enhances code clarity and type-checking.

Variables:
  • app (Optional[str]) – The module and name of the application. Default is None.

  • verbose (Optional[bool]) – Flag to increase output verbosity. Default is None.

  • app_instance (Optional[Pynenc]) – An instance of the Pynenc application, set after parsing arguments.

Initialization

app: str | None

None

verbose: bool | None

None

app_instance: Optional[pynenc.app.Pynenc]

None