summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xglucometerutils/glucometer.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/glucometerutils/glucometer.py b/glucometerutils/glucometer.py
index 7b5803b..b74e078 100755
--- a/glucometerutils/glucometer.py
+++ b/glucometerutils/glucometer.py
@@ -108,9 +108,10 @@ def main():
)
return 1
- # This check needs to happen before we try to initialize the device, as the
- # help action does not require a --device at all.
- if args.action == "help":
+ # This check needs to happen before we try to initialize the device, as the help
+ # action does not require a --device at all. Also use the same output if there's no
+ # action provided.
+ if not args.action or args.action == "help":
print(requested_driver.help)
return 0