Skip to content

Commit

Permalink
feat: add top-level help command
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaiBalint committed Apr 2, 2024
1 parent f899625 commit 4c38060
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dfsync/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,16 @@ def _version():
click.echo(f"Latest version is {latest_version}, please update using `dfsync self-update`")


@main.command(name="help", context_settings=dict(ignore_unknown_options=True))
@click.option("--help", is_flag=True, default=False, hidden=True)
def help(help):
"""
Print the usage/help for dfsync
"""
with click.Context(sync, info_name="dfsync") as ctx:
click.echo(sync.get_help(ctx))


@main.command()
def self_update():
"""
Expand Down

0 comments on commit 4c38060

Please sign in to comment.