Skip to content

Commit

Permalink
use "--" with snakemake args
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Nov 3, 2023
1 parent 892e2e8 commit 43bac2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions assembly_finder/assembly_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ def get_snakefile():
github: https://github.com/metagenlab/assembly_finder
"""
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
CONTEXT_SETTINGS = {
"help_option_names": ["-h", "--help"],
"ignore_unknown_options": True,
}


@click.command(help=desc, context_settings=CONTEXT_SETTINGS)
Expand Down Expand Up @@ -212,7 +215,7 @@ def cli(
dryrun = ""

if snakemake_args:
args = " ".join(["--" + arg for arg in snakemake_args])
args = " ".join([arg for arg in snakemake_args])
else:
args = ""

Expand Down

0 comments on commit 43bac2f

Please sign in to comment.