|
33 | 33 | relocateOutputs, scandeps, shortname, use_custom_schema,
|
34 | 34 | use_standard_schema)
|
35 | 35 | from .resolver import ga4gh_tool_registries, tool_resolver
|
36 |
| -from .software_requirements import DependenciesConfiguration, get_container_from_software_requirements |
| 36 | +from .software_requirements import DependenciesConfiguration, get_container_from_software_requirements, SOFTWARE_REQUIREMENTS_ENABLED |
37 | 37 | from .stdfsaccess import StdFsAccess
|
38 | 38 | from .update import ALLUPDATES, UPDATES
|
39 | 39 |
|
@@ -153,14 +153,21 @@ def arg_parser(): # type: () -> argparse.ArgumentParser
|
153 | 153 | exgroup.add_argument("--quiet", action="store_true", help="Only print warnings and errors.")
|
154 | 154 | exgroup.add_argument("--debug", action="store_true", help="Print even more logging")
|
155 | 155 |
|
156 |
| - # help="Dependency resolver configuration file describing how to adapt 'SoftwareRequirement' packages to current system." |
157 |
| - parser.add_argument("--beta-dependency-resolvers-configuration", default=None, help=argparse.SUPPRESS) |
158 |
| - # help="Defaut root directory used by dependency resolvers configuration." |
159 |
| - parser.add_argument("--beta-dependencies-directory", default=None, help=argparse.SUPPRESS) |
160 |
| - # help="Use biocontainers for tools without an explicitly annotated Docker container." |
161 |
| - parser.add_argument("--beta-use-biocontainers", default=None, help=argparse.SUPPRESS, action="store_true") |
162 |
| - # help="Short cut to use Conda to resolve 'SoftwareRequirement' packages." |
163 |
| - parser.add_argument("--beta-conda-dependencies", default=None, help=argparse.SUPPRESS, action="store_true") |
| 156 | + dependency_resolvers_configuration_help = argparse.SUPPRESS |
| 157 | + dependencies_directory_help = argparse.SUPPRESS |
| 158 | + use_biocontainers_help = argparse.SUPPRESS |
| 159 | + conda_dependencies = argparse.SUPPRESS |
| 160 | + |
| 161 | + if SOFTWARE_REQUIREMENTS_ENABLED: |
| 162 | + dependency_resolvers_configuration_help = "Dependency resolver configuration file describing how to adapt 'SoftwareRequirement' packages to current system." |
| 163 | + dependencies_directory_help = "Defaut root directory used by dependency resolvers configuration." |
| 164 | + use_biocontainers_help = "Use biocontainers for tools without an explicitly annotated Docker container." |
| 165 | + conda_dependencies = "Short cut to use Conda to resolve 'SoftwareRequirement' packages." |
| 166 | + |
| 167 | + parser.add_argument("--beta-dependency-resolvers-configuration", default=None, help=dependency_resolvers_configuration_help) |
| 168 | + parser.add_argument("--beta-dependencies-directory", default=None, help=dependencies_directory_help) |
| 169 | + parser.add_argument("--beta-use-biocontainers", default=None, help=use_biocontainers_help, action="store_true") |
| 170 | + parser.add_argument("--beta-conda-dependencies", default=None, help=conda_dependencies, action="store_true") |
164 | 171 |
|
165 | 172 | parser.add_argument("--tool-help", action="store_true", help="Print command line help for tool")
|
166 | 173 |
|
|
0 commit comments