vcorelib.args package#
Submodules#
vcorelib.args.newline module#
A module for adding newline-related arguments to an argument parser.
- class vcorelib.args.newline.LineEnding(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
- Bases: - str,- Enum- An enumeration for line-ending options. - DOS = '\r\n'#
 - PLATFORM = '\n'#
 - UNIX = '\n'#
 - static from_arg(opt: str) LineEnding[source]#
- Convert a string option to an instance of this enum. 
 
Module contents#
A module for working with application-specific argument parsers.
- vcorelib.args.app_args(command_loader: Callable[[], Sequence[Tuple[str, str, Callable[[ArgumentParser], Callable[[Namespace], int]]]]], commands: Dict[str, Callable[[Namespace], int]] = None) Tuple[Callable[[ArgumentParser], None], Callable[[Namespace], int]][source]#
- Create a function that can be used to add sub-command processing to an argument parser.