reuse cls.__doc__ for deploy command

This commit is contained in:
Fabien Meghazi 2014-05-28 09:25:31 +02:00
parent 3458eb3ef7
commit 397784cef0
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class Deploy(Command):
def run(self, args):
parser = argparse.ArgumentParser(
prog="%s deploy" % sys.argv[0].split(os.path.sep)[-1],
description='Deploy a module on an Odoo server.'
description=self.__doc__
)
parser.add_argument('path', help="Path of the module to deploy")
parser.add_argument('url', nargs='?', help='Url of the server (default=http://localhost:8069)', default="http://localhost:8069")