# HG changeset patch # User Ludovic Chabant # Date 1420175416 28800 # Node ID 516db87a04d4820a198de0b51d5e16e7a13b92d1 # Parent de09d41bae23d22a4ab221916a69a9847f6997fd cosmetic: pep8 compliance. diff -r de09d41bae23 -r 516db87a04d4 piecrust/commands/builtin/info.py --- 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')