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

DM-24545: fix typo in register-instrument command name #229

Merged
merged 1 commit into from Apr 29, 2020

Conversation

n8pease
Copy link
Contributor

@n8pease n8pease commented Apr 23, 2020

The subcommand name comes from the function name, with the underscore
changed to a dash.

If named, the subcommand name should have had a dash ("register-instrument"),
but it didn't matter so much because Click was changing the underscore
to a dash with the explicitly provided command name anyway. But this
is more correct.

@@ -30,7 +30,7 @@
log = logging.getLogger(__name__)


@click.command("register_instrument")
@click.command()
Copy link
Member

@timj timj Apr 23, 2020

Choose a reason for hiding this comment

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

In daf_butler I see

@click.command(name="config-validate")

and I also see the form above (no name at all). Neither of these is the form stated on the ticket as the plan so I'm more confused than when I started 😄

The subcommand name comes from the function name, with the underscore
changed to a dash.

If named, the subcommand name should have had a dash ("register-instrument"),
but it didn't matter so much because Click was changing the underscore
to a dash with the explicitly provided command name anyway. But this
is more correct.
@n8pease n8pease merged commit ce872c1 into master Apr 29, 2020
@timj timj deleted the tickets/DM-24545 branch June 25, 2020 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants