broadinstitute / cromwell-tools

A collection of Python clients and accessory scripts for interacting with the Cromwell
https://cromwell-tools.readthedocs.io
BSD 3-Clause "New" or "Revised" License
22 stars 9 forks source link

Error when running with no input arguments #97

Closed lbergelson closed 4 years ago

lbergelson commented 4 years ago

When I try to run cromwell-tools without specifying a command I get the following error:

🐋  ~ 1.8 cromwell-tools
Traceback (most recent call last):
  File "/usr/local/bin/cromwell-tools", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/cromwell_tools/cli.py", line 258, in main
    command, args = parser(arguments)
  File "/usr/local/lib/python3.7/site-packages/cromwell_tools/cli.py", line 250, in parser
    command = getattr(CromwellAPI, args['command'])
TypeError: getattr(): attribute name must be string

I would expect you'd get usage info instead of a crash.

lbergelson commented 4 years ago

Version is cromwell-tools 2.3.0. It looks like this might actually be fixed though in master...

rexwangcc commented 4 years ago

@lbergelson Thanks for filing the issue! I have confirmed it's a bug on both v2.3.0 and master... Will fix it ASAP :)