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