Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Add short option names for verdi code create #5799

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Nov 25, 2022

Fixes #5791

The verdi code create command replaced verdi code setup but unlike its predecessor it only has long option names. To provide short options as well, the DynamicEntryPointCommandGroup is extended to support the short_name key in an option specification. If specified, the option will provide this short option as well as the automatically determined long option.

The InstalledCode, PortableCode and ContainerizedCode are updated to provide short options for those that used to have one in the replaced verdi code setup command.

The `verdi code create` command replaced `verdi code setup` but unlike
its predecessor it only has long option names. To provide short options
as well, the `DynamicEntryPointCommandGroup` is extended to support the
`short_name` key in an option specification. If specified, the option
will provide this short option as well as the automatically determined
long option.

The `InstalledCode`, `PortableCode` and `ContainerizedCode` are updated
to provide short options for those that used to have one in the replaced
`verdi code setup` command.
@sphuber
Copy link
Contributor Author

sphuber commented Nov 25, 2022

Not sure anymore who requested this exactly during the usability feedback meeting of this week. @danielhollas @mkotiuga ? Cannot find Github handle of Louis Beal and Johannes Wasmer

@mkotiuga
Copy link

@sphuber Not me - I asked about setting verdi defaults and if there could be an mpirun command override associated with a code (@Crivella suggested a hack for that with the preprend text)

Copy link
Collaborator

@danielhollas danielhollas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sphuber it was not me who requested this. FWIW I looked through the changes and they look good to me, thanks!

@sphuber sphuber merged commit 11d8942 into aiidateam:main Nov 28, 2022
@sphuber sphuber deleted the feature/5791/verdi-code-create-option-short-hand branch November 28, 2022 14:34
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.

CLI: Add short-hand flags for verdi code create options
3 participants