Skip to content

Commit

Permalink
fix: fix nargs definition for --deploy-sources
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Oct 24, 2023
1 parent 0ef7226 commit fc252c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions snakemake/api.py
Expand Up @@ -170,6 +170,13 @@ def deploy_sources(
storage_settings: StorageSettings,
storage_provider_settings: Dict[str, TaggedSettings],
):
if (
storage_settings.default_storage_provider is None
or storage_settings.default_storage_prefix is None
):
raise ApiError(
"A default storage provider and prefix has to be set for deployment of sources."
)
plugin = StoragePluginRegistry().get_plugin(
storage_settings.default_storage_provider
)
Expand Down
2 changes: 1 addition & 1 deletion snakemake/cli.py
Expand Up @@ -1107,7 +1107,7 @@ def get_argument_parser(profiles=None):
)
group_utils.add_argument(
"--deploy-sources",
nargs="2",
nargs=2,
metavar=("QUERY", "CHECKSUM"),
help="Deploy sources archive from given storage provider query to the current "
"working sdirectory and control for archive checksum to proceed. Meant for "
Expand Down

0 comments on commit fc252c8

Please sign in to comment.