fix small bug introduced in last commit, add description to migrate help

This commit is contained in:
iElectric
2009-08-07 13:49:11 +02:00
parent 3d3f4e0391
commit b035aa372c
3 changed files with 26 additions and 22 deletions

View File

@@ -1,3 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""The migrate command-line tool."""
import sys
@@ -58,13 +61,13 @@ def main(argv=None, **kwargs):
commands = list(api.__all__)
commands.sort()
usage = """%%prog COMMAND ...
usage = u"""%%prog COMMAND ...
Available commands:
%s
Enter "%%prog help COMMAND" for information on a particular command.
""" % '\n\t'.join(commands)
""" % '\n\t'.join([u"%s%s" % (command.ljust(28), api.command_desc.get(command)) for command in commands])
parser = PassiveOptionParser(usage=usage)
parser.add_option("-v", "--verbose", action="store_true", dest="verbose")