change option-type to bool

This commit is contained in:
Jakobus Schürz 2020-02-12 18:34:11 +01:00
parent a5a5baa595
commit 73c9dd4702

View file

@ -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'