Coverage for python/lsst/ctrl/bps/cli/opt/options.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2022-10-08 09:12 +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""" 

23 

24__all__ = [ 

25 "extra_qgraph_option", 

26 "extra_init_option", 

27 "extra_run_quantum_option", 

28 "wms_service_option", 

29] 

30 

31from lsst.daf.butler.cli.utils import MWOptionDecorator 

32 

33extra_qgraph_option = MWOptionDecorator( 

34 "--extra-qgraph-options", help="String to pass through to QuantumGraph builder." 

35) 

36extra_init_option = MWOptionDecorator( 

37 "--extra-init-options", help="String to pass through to pipetaskInit execution." 

38) 

39extra_run_quantum_option = MWOptionDecorator( 

40 "--extra-run-quantum-options", help="String to pass through to Quantum execution." 

41) 

42wms_service_option = MWOptionDecorator( 

43 "--wms-service-class", 

44 "wms_service", 

45 help="Qualified name of the WMS service class to use. " 

46 "Value determined by following order: command-line argument, " 

47 "'wmsServiceClass' in config file (if used by subcommand), " 

48 "environment variable BPS_WMS_SERVICE_CLASS, default " 

49 "('lsst.ctrl.bps.wms.htcondor.HTCondorService')", 

50)