Skip to content

Commit

Permalink
fix: help/version options
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaquiery committed Dec 16, 2024
1 parent a5d49b5 commit e876fa2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trd_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@


@click.group()
@click.version_option()
@click.help_option()
def cli():
pass

Expand Down Expand Up @@ -85,6 +87,7 @@ def cli():
default=lambda: os.environ.get("TRD_LOG_LEVEL", "INFO"),
show_default="INFO",
)
@click.help_option()
def run(
rc_url,
rc_token,
Expand All @@ -96,7 +99,6 @@ def run(
dry_run,
log_dir,
log_level,
**kwargs
):
"""
Run the TRD CLI.
Expand Down Expand Up @@ -313,6 +315,7 @@ def run(
required=False,
type=click.Path(dir_okay=False, writable=True, resolve_path=True)
)
@click.help_option()
def dump(output):
"""
Export the required REDCap structure so that REDCap can be correctly configured for the project.
Expand Down

0 comments on commit e876fa2

Please sign in to comment.