rcmpy.commands.common
index
/home/vkottler/src/vkottler/workspace/rcmpy/rcmpy/commands/common.py

A module for common argument-parsing methods.

 
Functions
       
add_default_flag(parser: argparse.ArgumentParser) -> None
Adds a default-flag argument.
run_env_command(args: argparse.Namespace, cmd: Callable[[argparse.Namespace, rcmpy.environment.Environment], int]) -> int
Run a command with the environment instance loaded.

 
Data
        Callable = typing.Callable
EnvCommand = typing.Callable[[argparse.Namespace, rcmpy.environment.Environment], int]