1
0
mirror of https://github.com/b4tman/sync_ics2gcal synced 2025-02-01 20:28:30 +00:00

print usage in manage script

This commit is contained in:
Dmitry Belyaev 2018-04-07 19:17:03 +03:00
parent 6cf4888c72
commit 27c2f60979
Signed by: b4tman
GPG Key ID: 014E87EC54B77673

View File

@ -31,7 +31,10 @@ def parse_args():
parser_remove.add_argument( parser_remove.add_argument(
'id', action='store', help='calendar id to remove') 'id', action='store', help='calendar id to remove')
return parser.parse_args() args = parser.parse_args()
if args.command is None:
parser.print_usage()
return args
def load_config(): def load_config():