CLInserter

CLInserter

class CLInserter[source]

Bases: configpile.handlers.CLHandler

Handler that expands a flag into a sequence of args inserted into the command line to be parsed

Attributes

Note: attributes inherited from parent classes are not shown here, if any

inserted_args

Arguments inserted in the command-line

Methods

handle

Processes arguments, possibly updating the state or returning errors

List of members of CLInserter

inserted_args: Sequence[str]

Arguments inserted in the command-line

handle(args, state)[source]

Processes arguments, possibly updating the state or returning errors

Parameters
  • args (Sequence[str]) – Command-line arguments not processed yet

  • state (State) – (Mutable) state to possibly update

Return type

Tuple[Sequence[str], Optional[Err]]

Returns

The updated command-line and an optional error

__init__(inserted_args)