Skip to content

Commit

Permalink
simplified help output
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Oct 23, 2024
1 parent 97c66ef commit b4b8fb6
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions assembly_finder/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,18 @@ def common_options(func):
help="Output directory",
),
click.option(
"--print-versions/--no-print-versions",
"--print-versions",
is_flag=True,
default=False,
help="Print all tool versions at workflow end",
show_default=True,
),
click.option(
"--configfile",
default="config.yaml",
show_default=False,
callback=default_to_output,
help="Custom config file [default: (outputDir)/config.yaml]",
hidden=True,
),
click.option(
"--threads",
Expand All @@ -81,20 +82,20 @@ def common_options(func):
"--profile",
default=None,
help="Snakemake profile to use",
show_default=False,
hidden=True,
),
click.option(
"--use-conda/--no-use-conda",
default=True,
help="Use conda for Snakemake rules",
show_default=True,
hidden=True,
),
click.option(
"--conda-prefix",
default=lambda: os.path.join(os.getcwd(), ".snakemake", "conda"),
help="Default conda env prefix directory",
type=click.Path(),
show_default=False,
hidden=True,
),
click.option(
"--snake-default",
Expand All @@ -105,7 +106,7 @@ def common_options(func):
"--show-failed-logs",
],
help="Customise Snakemake runtime args",
show_default=True,
hidden=True,
),
click.option(
"--log",
Expand Down Expand Up @@ -158,16 +159,6 @@ def common_options(func):
"--mag",
],
},
{
"name": "Snakemake options",
"options": [
"--configfile",
"--profile",
"--use-conda",
"--conda-prefix",
"--snake-default",
],
},
{
"name": "Help",
"options": [
Expand Down Expand Up @@ -210,10 +201,9 @@ def common_options(func):
default=None,
)
@click.option(
"--summary/--all",
type=bool,
"--summary",
is_flag=True,
help="Download only summary tables or all files",
default=False,
show_default=True,
)
@click.option("--api-key", type=str, help="NCBI api-key", default=None)
Expand Down

0 comments on commit b4b8fb6

Please sign in to comment.