Coverage for python/lsst/ctrl/bps/cli/opt/options.py: 100%
9 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-07-05 09:21 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-07-05 09:21 +0000
1# This file is part of ctrl_bps.
2#
3# Developed for the LSST Data Management System.
4# This product includes software developed by the LSST Project
5# (https://www.lsst.org).
6# See the COPYRIGHT file at the top-level directory of this distribution
7# for details of code ownership.
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>.
21"""bps-specific command-line options.
22"""
24__all__ = [
25 "extra_qgraph_option",
26 "extra_update_qgraph_option",
27 "extra_init_option",
28 "extra_run_quantum_option",
29 "wms_service_option",
30 "compute_site_option",
31]
33from lsst.daf.butler.cli.utils import MWOptionDecorator
35extra_qgraph_option = MWOptionDecorator(
36 "--extra-qgraph-options", help="String to pass through to QuantumGraph builder."
37)
38extra_update_qgraph_option = MWOptionDecorator(
39 "--extra-update-qgraph-options", help="String to pass through to QuantumGraph updater."
40)
41extra_init_option = MWOptionDecorator(
42 "--extra-init-options", help="String to pass through to pipetaskInit execution."
43)
44extra_run_quantum_option = MWOptionDecorator(
45 "--extra-run-quantum-options", help="String to pass through to Quantum execution."
46)
47wms_service_option = MWOptionDecorator(
48 "--wms-service-class",
49 "wms_service",
50 help="Qualified name of the WMS service class to use. "
51 "Value determined by following order: command-line argument, "
52 "'wmsServiceClass' in config file (if used by subcommand), "
53 "environment variable BPS_WMS_SERVICE_CLASS, default "
54 "('lsst.ctrl.bps.wms.htcondor.HTCondorService')",
55)
56compute_site_option = MWOptionDecorator(
57 "--compute-site",
58 "compute_site",
59 help="The compute site used to run the workflow.",
60)