argparse2tool icon indicating copy to clipboard operation
argparse2tool copied to clipboard

No output with --generate_cwl_tool when ArgumentParser is instantiated with prog keyword

Open ksebby opened this issue 6 years ago • 3 comments

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.

ksebby avatar Apr 18 '18 23:04 ksebby

ping @anton-khodak @mr-c ?

hexylena avatar Apr 19 '18 11:04 hexylena

Thanks for reporting, @ksebby, I am looking into it.

anton-khodak avatar Apr 19 '18 14:04 anton-khodak

Thanks @anton-khodak . At least wanted to get it into the issues in case anyone else ran into it.

ksebby avatar Apr 23 '18 15:04 ksebby