Mercurial > piecrust2
diff piecrust/commands/builtin/info.py @ 567:a65f04ddbea2
showconfig: Don't crash when the whole config should be shown.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Oct 2015 22:46:05 -0700 |
parents | 794b047c9726 |
children | ab5c6a8ae90a |
line wrap: on
line diff
--- a/piecrust/commands/builtin/info.py Sat Oct 10 23:02:40 2015 -0700 +++ b/piecrust/commands/builtin/info.py Tue Oct 13 22:46:05 2015 -0700 @@ -35,7 +35,11 @@ nargs='?') def run(self, ctx): - show = ctx.app.config.get(ctx.args.path) + if ctx.args.path: + show = ctx.app.config.get(ctx.args.path) + else: + show = ctx.app.config.getAll() + if show is not None: if isinstance(show, (dict, list)): import yaml