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
1 changed files with 5 additions and 2 deletions

View File

@ -30,8 +30,11 @@ def parse_args():
'remove', help='remove calendar')
parser_remove.add_argument(
'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():