Closed emthompson-usgs closed 2 years ago
Typer looks interesting. It looks like it should be compatible with scripting (calling an application from another Python script), but we should check.
I've looked into this a bit more and I think that doing this doesn't make sense at this time. Typer is relatively new and it may not be as reliably supported/stable as argparse (which is part of the python standard library). The main benefit that I was excited about was tab completion support, but that doesn't seem worth the trouble. Closing this issue.
We might think about restructuring the top-level code to be less argparse centric. We could push argparse-specific code to the command line script and make the GMrecordsApp class independent of argparse. This would make it easy to switch the top-level code from one CLI parsing tool to another.
I agree this is not a high priority.
I like this idea and I'll make a separate issue for it.
https://typer.tiangolo.com/