Skip to content

Make verdi callable as sub command#2240

Merged
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_2239_verdi_version
Nov 26, 2018
Merged

Make verdi callable as sub command#2240
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_2239_verdi_version

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Nov 26, 2018

Fixes #2239

Because the verdi group was not marked as callable without
subcommand, the --version option was broken as it would throw
a Missing command error. Adding invoke_without_command=True to
the verdi group declaration and making the --version an eager
option will ensure it works without specifying a sub command.

A test has been added to test this functionality.

Because the `verdi` group was not marked as callable without
subcommand, the `--version` option was broken as it would throw
a `Missing command` error. Adding `invoke_without_command=True` to
the `verdi` group declaration and making the `--version` an eager
option will ensure it works without specifying a sub command.

A test has been added to test this functionality.
@sphuber sphuber force-pushed the fix_2239_verdi_version branch from 814f75b to d6ea517 Compare November 26, 2018 14:43
@sphuber sphuber changed the title Make sure verdi can be called as command Make verdi callable as sub command Nov 26, 2018
@coveralls
Copy link
Copy Markdown

coveralls commented Nov 26, 2018

Coverage Status

Coverage increased (+0.003%) to 68.907% when pulling d6ea517 on sphuber:fix_2239_verdi_version into 7dfdccd on aiidateam:develop.

@sphuber sphuber merged commit 446ce15 into aiidateam:develop Nov 26, 2018
@sphuber sphuber deleted the fix_2239_verdi_version branch November 26, 2018 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants