ports/devel/py-icalendar/files/patch-src_icalendar_cli.py
Martin Wilke 177c939ed6 - Update to 4.0.3
Changes by upstream:
https://github.com/collective/icalendar/compare/3.11.7...4.0.3

PR:		229901
Submitted by:	freebsd_ports@k-worx.org
Approved by:	maintainer timeout
2019-01-11 12:39:23 +00:00

10 lines
451 B
Python

--- src/icalendar/cli.py.orig 2018-06-20 12:52:55 UTC
+++ src/icalendar/cli.py
@@ -86,6 +86,7 @@ def main():
# This seems a bit of an overkill now, but we will probably add more
# functionality later, e.g., iCalendar to JSON / YAML and vice versa.
subparsers = parser.add_subparsers(dest='subcommand')
+ subparsers.required = True
subparser = subparsers.add_parser(
'view', description=view.__doc__.split('\n\n')[0])