diff options
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', |