import yapx
def set_employee(
*args,
name: str,
age: int,
salary: float = -1,
manager: bool = False,
):
...
parser = yapx.ArgumentParser()
parser.add_arguments(submit_employee)
args = parser.parse_args()
set_employee(**args.to_dict())
|
Helpful Parameters:
--help, -h Show this help message.
Required Parameters:
--name <value>
--age <#>
Optional Parameters:
--salary <#> | Default: -1.0
--manager, --no-manager
<...> Any extra command-line values.
...
|