Our approach of parsing the analysis classes and building an argparse object based on the docstring works good for arbitrary parameters. However, currently it is deeply buried and tightly bound to this library.
I often have the same problem that I have a certain function and I want to build a simple command line interface from it. Currently, this involves a lot of copy and pasting. Here, we have everything in place and one just has to generalize everything a bit. There already exists a nice reference implementation which is not as general as what we did here.
If anybody wants to tackle this I already started a little branch which is not working at all but maybe allows for a little headstart.
Our approach of parsing the analysis classes and building an argparse object based on the docstring works good for arbitrary parameters. However, currently it is deeply buried and tightly bound to this library.
I often have the same problem that I have a certain function and I want to build a simple command line interface from it. Currently, this involves a lot of copy and pasting. Here, we have everything in place and one just has to generalize everything a bit. There already exists a nice reference implementation which is not as general as what we did here.
If anybody wants to tackle this I already started a little branch which is not working at all but maybe allows for a little headstart.