From a2b428d3829b761708910fcf97d964b937bef979 Mon Sep 17 00:00:00 2001 From: Tessa Pierce Ward Date: Wed, 7 Jul 2021 16:17:56 -0700 Subject: [PATCH] add help (#194) --- charcoal/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charcoal/__main__.py b/charcoal/__main__.py index 8172bde..58e1edb 100644 --- a/charcoal/__main__.py +++ b/charcoal/__main__.py @@ -84,8 +84,9 @@ def cli(): @click.option('--no-use-conda', is_flag=True, default=False) @click.option('--verbose', is_flag=True) @click.option('--outdir', nargs=1) +@click.option("-h", "--help", nargs=0) @click.argument('snakemake_args', nargs=-1) -def run(configfile, snakemake_args, no_use_conda, verbose, outdir): +def run(configfile, snakemake_args, no_use_conda, verbose, outdir, help): "execute charcoal workflow (using snakemake underneath)" targets = [ arg for arg in snakemake_args if not arg.startswith('-') ] if help or not targets: