dryparse.context

Context information.

class Context(args=None, command_arg_index=None)

Context information, mainly from the parser.

property args: Optional[List[str]]

Command line arguments of the current context.

property command_arg_index: int

Index in args of the currently parsed command.

context = <dryparse.context.Context object>

Use this to query context information.