3
0
mirror of https://git.launchpad.net/ubuntu-dev-tools synced 2025-03-13 08:01:09 +00:00

wrap-and-sort: Fix indention.

This commit is contained in:
Benjamin Drung 2010-11-24 20:42:14 +01:00
parent 937e6c3aee
commit b6582c2c6e

@ -159,13 +159,13 @@ if __name__ == "__main__":
epilog = "See %s(1) for more info." % (script_name)
parser = optparse.OptionParser(usage=usage, epilog=epilog)
parser.add_option("-a", "--wrap-always",
help="wrap lists even if they fit into one 80 character long line",
dest="wrap_always", action="store_true", default=False)
parser.add_option("-s", "--short-indent",
help="only indent wrapped lines by one space (default is in-line "
"with the field name)",
dest="short_indent", action="store_true", default=False)
parser.add_option("-a", "--wrap-always", dest="wrap_always",
help="wrap lists even if they fit into one 80 character "
"long line", action="store_true", default=False)
parser.add_option("-s", "--short-indent", dest="short_indent",
help="only indent wrapped lines by one space (default is "
"in-line with the field name)", action="store_true",
default=False)
parser.add_option("-n", "--no-cleanup", help="don't cleanup whitespaces",
dest="cleanup", action="store_false", default=True)
parser.add_option("-v", "--verbose", help="print more information",
@ -174,8 +174,8 @@ if __name__ == "__main__":
(options, args) = parser.parse_args()
if len(args) != 0:
print >> sys.stderr, "%s: Error: %s: %s" % (script_name,
"Unsupported additional parameters specified", ", ".join(args))
print >> sys.stderr, ("%s: Error: Unsupported additional parameters "
"specified: %s") % (script_name, ", ".join(args))
sys.exit(1)
main(script_name, options.cleanup, options.wrap_always,