Skip to content

Commit

Permalink
Add options-file command line option for bulk settings command lines
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Sep 18, 2020
1 parent 887e66a commit e6d5df1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/lsst/obs/base/cli/cmd/commands.py
Expand Up @@ -22,7 +22,7 @@
import click

from lsst.daf.butler.cli.opt import (repo_argument, config_option, config_file_option, locations_argument,
regex_option, run_option, transfer_option)
options_file_option, regex_option, run_option, transfer_option)
from lsst.daf.butler.cli.utils import (cli_handle_exception, split_commas, typeStrAcceptsMultiple)
from ..opt import instrument_argument, instrument_option
from ... import script
Expand All @@ -49,6 +49,7 @@
@transfer_option(help="Mode to use to transfer files into the new repository.")
@config_file_option(help="Path to a `ConvertRepoConfig` override to be included after the Instrument config "
"overrides are applied.")
@options_file_option()
def convert(*args, **kwargs):
"""Convert a Butler gen 2 repository into a gen 3 repository."""
cli_handle_exception(script.convert, *args, **kwargs)
Expand All @@ -64,6 +65,7 @@ def convert(*args, **kwargs):
callback=split_commas,
metavar=typeStrAcceptsMultiple)
@instrument_option(required=True)
@options_file_option()
def define_visits(*args, **kwargs):
"""Define visits from exposures in the butler registry."""
cli_handle_exception(script.defineVisits, *args, **kwargs)
Expand All @@ -82,6 +84,7 @@ def define_visits(*args, **kwargs):
@transfer_option()
@click.option("--ingest-task", default="lsst.obs.base.RawIngestTask", help="The fully qualified class name "
"of the ingest task to use.")
@options_file_option()
def ingest_raws(*args, **kwargs):
"""Ingest raw frames into from a directory into the butler registry"""
cli_handle_exception(script.ingestRaws, *args, **kwargs)
Expand All @@ -100,6 +103,7 @@ def register_instrument(*args, **kwargs):
@repo_argument(required=True)
@instrument_option(required=True)
@run_option(required=False)
@options_file_option()
def write_curated_calibrations(*args, **kwargs):
"""Add an instrument's curated calibrations to the data repository.
"""
Expand Down

0 comments on commit e6d5df1

Please sign in to comment.