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

CLI shows help without args #100

Closed rexwangcc closed 4 years ago

rexwangcc commented 4 years ago

Purpose

Changes

Review Instructions

When run cromwell-tools, before:

TypeError: getattr(): attribute name must be string

now:

error: No commands/arguments provided!
usage: cromwell-tools [-h] [-V]
                      {submit,wait,status,abort,release_hold,metadata,query,health,task_runtime}
                      ...

positional arguments:
  {submit,wait,status,abort,release_hold,metadata,query,health,task_runtime}
                        sub-command help
    submit              submit help
    wait                wait help
    status              status help
    abort               abort help
    release_hold        release_hold help
    metadata            metadata help
    query               query help
    health              health help
    task_runtime        task_runtime help

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit