Mercurial > piecrust2
changeset 161:516db87a04d4
cosmetic: pep8 compliance.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 01 Jan 2015 21:10:16 -0800 |
parents | de09d41bae23 |
children | c4b155b08b52 |
files | piecrust/commands/builtin/info.py |
diffstat | 1 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/commands/builtin/info.py Thu Jan 01 19:35:18 2015 -0800 +++ b/piecrust/commands/builtin/info.py Thu Jan 01 21:10:16 2015 -0800 @@ -25,10 +25,12 @@ def __init__(self): super(ShowConfigCommand, self).__init__() self.name = 'showconfig' - self.description = "Prints part of, or the entirety of, the website's configuration." + self.description = ("Prints part of, or the entirety of, " + "the website's configuration.") def setupParser(self, parser, app): - parser.add_argument('path', + parser.add_argument( + 'path', help="The path to a config section or value", nargs='?') @@ -90,16 +92,20 @@ self.description = "Find pages in the website." def setupParser(self, parser, app): - parser.add_argument('pattern', + parser.add_argument( + 'pattern', help="The pattern to match with page slugs", nargs='?') - parser.add_argument('--endpoint', + parser.add_argument( + '--endpoint', help="The endpoint(s) to look into", nargs='+') - parser.add_argument('--full-path', + parser.add_argument( + '--full-path', help="Return full paths instead of root-relative paths", action='store_true') - parser.add_argument('--metadata', + parser.add_argument( + '--metadata', help="Return metadata about the page instead of just the path", action='store_true')