From 73c9dd470222aba4ae024fa0231d197c600b2529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 12 Feb 2020 18:34:11 +0100 Subject: [PATCH] change option-type to bool --- workdirfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workdirfs.py b/workdirfs.py index 9c83512..227dd1e 100755 --- a/workdirfs.py +++ b/workdirfs.py @@ -229,8 +229,8 @@ if __name__ == '__main__': all day till 3 o'clock in the morning, set it to 4, so next day archive-dir will be created 4 hours after midnight. You have 1h tolerance, if you're working one day a little bit longer""") - parser.add_argument("-y", "--yearlydir", default=False) - parser.add_argument("-M", "--monthlydir", default=False) + parser.add_argument("-y", "--yearlydir", type=bool, default=False) + parser.add_argument("-M", "--monthlydir", type=bool, default=False) args = parser.parse_args() print(args) #root = os.environ['HOME']+'/archive'