Pass_Thru Module

PassThru Parameters

author:

Doug Skrypa

class cli_command_parser.parameters.pass_thru.PassThru(action: Literal['store_all'] = 'store_all', **kwargs)[source]

Bases: Parameter

Collects all remaining arguments, without processing them. Must be preceded by -- and a space.

Parameters:
  • action – The action to take on individual parsed values. Only store_all (the default) is supported for this parameter type.

  • kwargs – Additional keyword arguments to pass to Parameter.

nargs: Nargs = Nargs('REMAINDER')
missing_hint: str = " (missing pass thru args separated from others with '--')"

Hint to provide if this param/group is missing