# HG changeset patch # User Ludovic Chabant # Date 1440996342 25200 # Node ID ef12066349399148b2cf03f38b0c97bd02b11007 # Parent 64acfb58e02316cedcba3fd3c23677ce57560a55 witch: Show help when no command is specified. diff -r 64acfb58e023 -r ef1206634939 wikked/witch.py --- a/wikked/witch.py Fri Aug 28 23:12:22 2015 -0700 +++ b/wikked/witch.py Sun Aug 30 21:45:42 2015 -0700 @@ -119,6 +119,11 @@ # Parse! result = parser.parse_args() + # Print the help if no command was specified. + if not hasattr(result, 'func'): + parser.print_help() + return 0 + # Create the wiki. root = find_wiki_root(result.root) if root: