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-27500 add a comment in butler & pipetask subcommand about more options in butler --help #329

Merged
merged 1 commit into from
Nov 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 11 additions & 6 deletions python/lsst/obs/base/cli/cmd/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
run_option,
transfer_option
)
from lsst.daf.butler.cli.utils import (cli_handle_exception, split_commas, typeStrAcceptsMultiple)
from lsst.daf.butler.cli.utils import (
ButlerCommand,
cli_handle_exception,
split_commas,
typeStrAcceptsMultiple
)
from ..opt import instrument_argument
from ... import script

Expand All @@ -40,7 +45,7 @@
fits_re = r"\.fit[s]?\b"


@click.command(short_help="Convert a gen2 repo to gen3.")
@click.command(short_help="Convert a gen2 repo to gen3.", cls=ButlerCommand)
@repo_argument(required=True,
help="REPO is the URI or path to the gen3 repository. Will be created if it does not already "
"exist")
Expand All @@ -64,7 +69,7 @@ def convert(*args, **kwargs):
cli_handle_exception(script.convert, *args, **kwargs)


@click.command(short_help="Define visits from exposures.")
@click.command(short_help="Define visits from exposures.", cls=ButlerCommand)
@repo_argument(required=True)
@instrument_argument(required=True)
@config_file_option(help="Path to a pex_config override to be included after the Instrument config overrides "
Expand All @@ -81,7 +86,7 @@ def define_visits(*args, **kwargs):
cli_handle_exception(script.defineVisits, *args, **kwargs)


@click.command(short_help="Ingest raw frames.")
@click.command(short_help="Ingest raw frames.", cls=ButlerCommand)
@repo_argument(required=True)
@locations_argument(help="LOCATIONS specifies files to ingest and/or locations to search for files.",
required=True)
Expand All @@ -101,7 +106,7 @@ def ingest_raws(*args, **kwargs):
cli_handle_exception(script.ingestRaws, *args, **kwargs)


@click.command(short_help="Add an instrument to the repository")
@click.command(short_help="Add an instrument to the repository", cls=ButlerCommand)
@repo_argument(required=True)
@instrument_argument(required=True, nargs=-1, help="The fully-qualified name of an Instrument subclass.")
def register_instrument(*args, **kwargs):
Expand All @@ -110,7 +115,7 @@ def register_instrument(*args, **kwargs):
cli_handle_exception(script.registerInstrument, *args, **kwargs)


@click.command(short_help="Add an instrument's curated calibrations.")
@click.command(short_help="Add an instrument's curated calibrations.", cls=ButlerCommand)
@repo_argument(required=True)
@instrument_argument(required=True)
@click.option("--collection", required=False,
Expand Down