diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-12-28 13:06:02 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-12-28 14:12:03 +0100 |
commit | f85da4c81d576b772e594718ad57a316cf544ef3 (patch) | |
tree | 4c963940c2da4447e51789feaacb79c442355bb5 /glucometer.py | |
parent | Raise minimum Python version to 3.4, to allow using the enum module. (diff) | |
download | glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.gz glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.bz2 glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.lz glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.xz glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.tar.zst glucometerutils-f85da4c81d576b772e594718ad57a316cf544ef3.zip |
Diffstat (limited to 'glucometer.py')
-rwxr-xr-x | glucometer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glucometer.py b/glucometer.py index 9ec781c..abed647 100755 --- a/glucometer.py +++ b/glucometer.py @@ -48,7 +48,8 @@ def main(): parser_dump = subparsers.add_parser( 'dump', help='Dump the readings stored in the device.') parser_dump.add_argument( - '--unit', action='store', choices=common.VALID_UNITS, + '--unit', action='store', + choices=[unit.value for unit in common.Unit], help='Select the unit to use for the dumped data.') parser_dump.add_argument( '--sort-by', action='store', default='timestamp', |