# HG changeset patch # User Ludovic Chabant # Date 1409160212 25200 # Node ID 64f37c4cce688df59ab7a051d6b2753fc5f69425 # Parent 6e60e0fef2bea3f5155f195eb21754ee60d77586 Print the help by default when running `chef` with no command. diff -r 6e60e0fef2be -r 64f37c4cce68 piecrust/main.py --- a/piecrust/main.py Tue Aug 26 23:20:48 2014 -0700 +++ b/piecrust/main.py Wed Aug 27 10:23:32 2014 -0700 @@ -179,6 +179,11 @@ result = parser.parse_args() logger.debug(format_timed(start_time, 'initialized PieCrust', colored=False)) + # Print the help if no command was specified. + if not hasattr(result, 'func'): + parser.print_help() + return 0 + # Run the command! ctx = CommandContext(app, parser, result) exit_code = result.func(ctx)