Merge lp:~anybox/openerp-command/trunk-addons-path-env into lp:openerp-command

Proposed by Georges Racinet
Status: Merged
Merged at revision: 179
Proposed branch: lp:~anybox/openerp-command/trunk-addons-path-env
Merge into: lp:openerp-command
Diff against target: 18 lines (+3/-5)
1 file modified
openerpcommand/common.py (+3/-5)
To merge this branch: bzr merge lp:~anybox/openerp-command/trunk-addons-path-env
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+132128@code.launchpad.net
To post a comment you must log in.
180. By Georges Racinet <email address hidden>

[FIX] help message for --addons duplicated by prev commit

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerpcommand/common.py'
2--- openerpcommand/common.py 2012-08-23 09:25:05 +0000
3+++ openerpcommand/common.py 2012-10-30 15:13:25 +0000
4@@ -9,11 +9,9 @@
5 """
6 Add a common --addons argument to a parser.
7 """
8- parser.add_argument('--addons', metavar='PATH',
9- default=os.environ.get('OPENERP_PATH', ''),
10- help='colon-separated list of paths to addons. '
11- 'If the option is not given on the command line, '
12- 'the OPENERP_PATH environment variable is used.')
13+ parser.add_argument('--addons', metavar='ADDONS',
14+ **required_or_default('ADDONS',
15+ 'colon-separated list of paths to addons'))
16
17 def get_addons_from_paths(paths, exclude):
18 """

Subscribers

People subscribed via source and target branches