[FIX] core: missing doc for some subcommands
Run `odoo-bin help`, you'll notice that some descriptions are missing, this commit fixes that. Run `odoo-bin shell --help`, you'll notice that the `usage:` line says `odoo-bin [options]` instead of `odoo-bin shell [options]`. Other commands that depend on the server cli are broken too. Fix those too. closes odoo/odoo#121085 X-original-commit: 9c6bac741ff437564e7dbe4d0aa8dbd307b71f8d Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com> Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
This commit is contained in:
+3
-4
@@ -1,12 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import print_function
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
import argparse
|
||||
import os
|
||||
import requests
|
||||
import sys
|
||||
import tempfile
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
from . import Command
|
||||
|
||||
@@ -63,7 +62,7 @@ class Deploy(Command):
|
||||
|
||||
def run(self, cmdargs):
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="%s deploy" % sys.argv[0].split(os.path.sep)[-1],
|
||||
prog=f'{Path(sys.argv[0]).name} {self.name}',
|
||||
description=self.__doc__
|
||||
)
|
||||
parser.add_argument('path', help="Path of the module to deploy")
|
||||
|
||||
Reference in New Issue
Block a user