Add --type shortcut help messages for generating monthly and weekly calendars.
- Add --type monthly shortcut help message - Add --type weekly shortcut help message
This commit is contained in:
parent
541d69ef5d
commit
aee43175eb
1 changed files with 2 additions and 2 deletions
|
@ -133,8 +133,8 @@ def main():
|
||||||
choices=["weekly", "monthly"],
|
choices=["weekly", "monthly"],
|
||||||
default="weekly",
|
default="weekly",
|
||||||
)
|
)
|
||||||
type_group.add_argument('--monthly', action='store_const', const='monthly', 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')
|
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 = parser.add_mutually_exclusive_group()
|
||||||
count_group.add_argument(
|
count_group.add_argument(
|
||||||
|
|
Loading…
Reference in a new issue