Skip to content

Commit

Permalink
Merge pull request #25 from jtaleric/help-cleanup
Browse files Browse the repository at this point in the history
Cleaning up help
  • Loading branch information
shashank-boyapally authored Mar 14, 2024
2 parents 1ebf0b0 + 8646fca commit 9f68e11
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions orion.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@


@click.group()
def cli():
# pylint: disable=unused-argument
def cli(max_content_width=120):
"""
cli function to group commands
"""
Expand All @@ -28,8 +29,10 @@ def cli():
@click.option("--debug", is_flag=True, help="log level ")
@click.option("--hunter-analyze",is_flag=True, help="run hunter analyze")
def orion(config, debug, output,hunter_analyze):
"""Orion is the cli tool to detect regressions over the runs
"""
Orion is the cli tool to detect regressions over the runs
\b
Args:
config (str): path to the config file
debug (bool): lets you log debug mode
Expand Down Expand Up @@ -86,5 +89,9 @@ def orion(config, debug, output,hunter_analyze):


if __name__ == "__main__":
cli.add_command(orion)
cli()
if len(sys.argv) <= 1:
cli.main(['--help'])
else:
print(len(sys.argv))
cli.add_command(orion)
cli()

0 comments on commit 9f68e11

Please sign in to comment.