argparse2tool
argparse2tool copied to clipboard
No output with --generate_cwl_tool when ArgumentParser is instantiated with prog keyword
The tool does not provide any output if the parser is instantiated with the prog keyword. e.g. for foo.py that contains parser = argparse.ArgumentParser(description='A description', prog='some prog name')
and running python foo.py --generate_cwl_tool > foo.cwl
foo.cwl will be empty. If prog='some prog name'
is removed, everything works fine.
ping @anton-khodak @mr-c ?
Thanks for reporting, @ksebby, I am looking into it.
Thanks @anton-khodak . At least wanted to get it into the issues in case anyone else ran into it.