Skip to content

Commit

Permalink
remove unneeded command name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
n8pease committed Apr 23, 2020
1 parent 6423acc commit f8cd617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/obs/base/cli/cmd/register_instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
log = logging.getLogger(__name__)


@click.command("register_instrument")
@click.command()
@instrument_option(required=True, helpMsg="The fully-qualified name of an Instrument subclass.")
@repo_option(required=True)
@click.pass_context
Expand Down

0 comments on commit f8cd617

Please sign in to comment.