diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-03-29 18:53:25 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-04-09 20:03:18 +0200 |
commit | 4c147af06faab5de3979917065b2644955e32911 (patch) | |
tree | 093984cd4c7f8cf757ed517e061dfcdff584391f | |
parent | Move driver loading to glucometerutils.driver. (diff) | |
download | glucometerutils-4c147af06faab5de3979917065b2644955e32911.tar glucometerutils-4c147af06faab5de3979917065b2644955e32911.tar.gz glucometerutils-4c147af06faab5de3979917065b2644955e32911.tar.bz2 glucometerutils-4c147af06faab5de3979917065b2644955e32911.tar.lz glucometerutils-4c147af06faab5de3979917065b2644955e32911.tar.xz glucometerutils-4c147af06faab5de3979917065b2644955e32911.tar.zst glucometerutils-4c147af06faab5de3979917065b2644955e32911.zip |
-rwxr-xr-x | glucometerutils/glucometer.py | 7 |
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 |