diff options
author | jimsiff <jim@sifferle.net> | 2013-12-14 01:52:20 +0100 |
---|---|---|
committer | jimsiff <jim@sifferle.net> | 2013-12-14 01:52:20 +0100 |
commit | 570585d136a93be9e7e5a21604f0150cf1e111cd (patch) | |
tree | 7d84982a8e1d130b1f1877f2a1a31339f210903a /glucometer.py | |
parent | Update documentation for the dump format and options. (diff) | |
download | glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.gz glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.bz2 glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.lz glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.xz glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.zst glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.zip |
Diffstat (limited to '')
-rwxr-xr-x | glucometer.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/glucometer.py b/glucometer.py index 155cd93..1131042 100755 --- a/glucometer.py +++ b/glucometer.py @@ -82,8 +82,13 @@ def main(): else: print(device.get_datetime()) elif args.action == 'zero': - device.zero_log() - print('Device data log zeroed.') + confirm = input('Delete the device data log? (y/N) ') + if confirm.lower() in ['y', 'ye', 'yes']: + device.zero_log() + print('\nDevice data log zeroed.') + else: + print('\nDevice data log not zeroed.') + return 1 else: return 1 except exceptions.Error as err: |