dib-lab / dammit

just annotate it, dammit!
http://dib-lab.github.io/dammit/
Other
88 stars 28 forks source link

Unify click and argparse interfaces #177

Closed camillescott closed 4 years ago

bluegenes commented 4 years ago

@camillescott it looks like the default run arguments are not yet usable within the subcommands?

dammit run databases --install --database-dir tests/databases

Usage: dammit run databases [OPTIONS]
Try 'dammit run databases --help' for help.

Error: no such option: --database-dir
dammit run databases --install --n-threads 2

Usage: dammit run databases [OPTIONS]
Try 'dammit run databases --help' for help.

Error: no such option: --n-threads
camillescott commented 4 years ago

The common arguments have to come after run and before databases, like:

dammit run --n-threads 2 databases --install