diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-09-30 17:23:30 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-09-30 17:23:30 +0200 |
| commit | c8cc54559b75a621e4444ecdca6abd901b45e494 (patch) | |
| tree | 92141325d4dbbf70bbfb8e0c040d4435c8d2378f /odoo/cli | |
| parent | b2804b1d2ae5fd7ec5c0eca79a8db77476badc84 (diff) | |
| parent | 91a14488250bc2bb405cc6d300359aa272642484 (diff) | |
[MERGE] forward port branch 10.0 up to 91a1448
Diffstat (limited to 'odoo/cli')
| -rw-r--r-- | odoo/cli/command.py | 2 | ||||
| -rw-r--r-- | odoo/cli/server.py | 4 | ||||
| -rw-r--r-- | odoo/cli/shell.py | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/odoo/cli/command.py b/odoo/cli/command.py index fa22fd5baf1..75aa392fdfb 100644 --- a/odoo/cli/command.py +++ b/odoo/cli/command.py @@ -62,3 +62,5 @@ def main(): if command in commands: o = commands[command]() o.run(args) + else: + sys.exit('Unknow command %r' % (command,)) diff --git a/odoo/cli/server.py b/odoo/cli/server.py index da33c6888cd..afb172b7f3c 100644 --- a/odoo/cli/server.py +++ b/odoo/cli/server.py @@ -54,7 +54,9 @@ def report_configuration(): This function assumes the configuration has been initialized. """ config = odoo.tools.config - _logger.info("OpenERP version %s", __version__) + _logger.info("Odoo version %s", __version__) + if os.path.isfile(config.rcfile): + _logger.info("Using configuration file at " + config.rcfile) _logger.info('addons paths: %s', odoo.modules.module.ad_paths) host = config['db_host'] or os.environ.get('PGHOST', 'default') port = config['db_port'] or os.environ.get('PGPORT', 'default') diff --git a/odoo/cli/shell.py b/odoo/cli/shell.py index cf7b5ffbce2..6d0b0d5bd01 100644 --- a/odoo/cli/shell.py +++ b/odoo/cli/shell.py @@ -46,7 +46,7 @@ class Shell(Command): exec sys.stdin in local_vars else: if 'env' not in local_vars: - print 'No environment set, use `odoo.py shell -d dbname` to get one.' + print 'No environment set, use `%s shell -d dbname` to get one.' % sys.argv[0] for i in sorted(local_vars): print '%s: %s' % (i, local_vars[i]) |
