remainder
handle_field(name, field)
¶
Set the remainder arguments.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
The name of the field. |
required |
field |
FieldInfo
|
A dictionary representation of the field. |
required |
Returns:
Type | Description |
---|---|
FuncArgs
|
Function arguments for the parser |
Source code in m/cli/engine/parsers/remainder.py
should_handle(extras)
¶
Handle the __remainder_args field.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
extras |
AnyMap
|
A dictionary with information for a cli argument. |
required |
Returns:
Type | Description |
---|---|
bool
|
True if it should provide the remainder arguments. |