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 (str | None) – The module and name of the application. Default is None.

  • verbose (bool | None) – Flag to increase output verbosity. Default is None.

  • app_instance (Pynenc | None) – An instance of the Pynenc application, set after parsing arguments.

Initialization

app: str | None

None

verbose: bool | None

None

app_instance: Pynenc | None

None