Skip to content

Commit

Permalink
Display an usage message when no argument given (closes #152)
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Jan 7, 2021
1 parent 7829deb commit db61c6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rivalcfg/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ def _check_linux():


def main(args=sys.argv[1:]):
# Display a message when no argument given
if len(sys.argv) == 1:
print("USAGE:\n rivalcfg --help")
sys.exit(1)

# On Linux: check udev rules
_check_linux()

Expand Down

0 comments on commit db61c6c

Please sign in to comment.