changeset 765:549e21789ad9

themes: No parameters shoudl make the help text show up. This makes the `themes` command consistent with other commands with sub-commands.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 02 Jul 2016 01:24:39 -0700
parents f7ddd730c08d
children f69fdc601845
files piecrust/commands/builtin/themes.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/commands/builtin/themes.py	Sat Jul 02 01:16:50 2016 -0700
+++ b/piecrust/commands/builtin/themes.py	Sat Jul 02 01:24:39 2016 -0700
@@ -53,7 +53,8 @@
             raise SiteNotFoundError(theme=ctx.app.theme_site)
 
         if not hasattr(ctx.args, 'sub_func'):
-            ctx.args = ctx.parser.parse_args(['themes', 'info'])
+            ctx.parser.parse_args(['themes', '--help'])
+            return
         ctx.args.sub_func(ctx)
 
     def _info(self, ctx):