I am trying to allow unknown arguments using argparse, without typing tons of quote marks as in the json.loads solution presented here.
The fire package manages to do this.
For example saving the following program to example.py
import fire
def example_fire_function( **kwargs):
print(kwargs)
if __name__ == "__main__":
fire.Fire(example_fire_function)
and invoking it with
python example.py --dringus 4
Outputs {'dringus': 4}, as desired.
Is this possible with just the built in argparse package? I already have a large list of argparse arguments and want to add this on top.