From aee43175ebb6b4b803368ce77134551f2f5e4550 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 2 Oct 2023 09:32:06 +0200 Subject: [PATCH] Add --type shortcut help messages for generating monthly and weekly calendars. - Add --type monthly shortcut help message - Add --type weekly shortcut help message --- src/kalente/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kalente/__main__.py b/src/kalente/__main__.py index ab2f76a..2d5b4ed 100644 --- a/src/kalente/__main__.py +++ b/src/kalente/__main__.py @@ -133,8 +133,8 @@ def main(): choices=["weekly", "monthly"], default="weekly", ) - type_group.add_argument('--monthly', action='store_const', const='monthly', dest='type') - type_group.add_argument('--weekly', action='store_const', const='weekly', dest='type') + type_group.add_argument('--monthly', action='store_const', const='monthly', dest='type', help="Generate monthly calendar. Shortcut for --type monthly.") + type_group.add_argument('--weekly', action='store_const', const='weekly', dest='type', help="Generate weekly calendar. This is the default. Shortcut for --type weekly.") count_group = parser.add_mutually_exclusive_group() count_group.add_argument(