Skip to content

Commit

Permalink
Add -h and --help option for clair
Browse files Browse the repository at this point in the history
  • Loading branch information
chaklim committed Nov 10, 2019
1 parent c555e27 commit 9661105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clair.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def print_help_messages():
from textwrap import dedent
print(dedent("""\
{0} submodule invocator:
Usage: clair.py SubmoduleName [Options of the submodule]
Usage: python clair.py [submodule] [options of the submodule]
Available data preparation submodules:\n{1}
Expand All @@ -64,7 +64,7 @@ def print_help_messages():


def main():
if len(sys.argv) <= 1:
if len(sys.argv) <= 1 or sys.argv[1] == "-h" or sys.argv[1] == "--help":
print_help_messages()
sys.exit(0)

Expand Down

0 comments on commit 9661105

Please sign in to comment.