summaryrefslogtreecommitdiff
path: root/openerpcommand/main.py
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2013-01-11 14:46:57 +0100
committerVo Minh Thu <vmt@openerp.com>2013-01-11 14:46:57 +0100
commit3da57500c279cd19fa6d561eef149d708383138d (patch)
treee6ea46397217349ff0381b91346a1ba02394e14b /openerpcommand/main.py
parent3478333bca1a28483c1c7eb90431cb1e979c74ba (diff)
[ADD] oe: provides sane (unfucked) command-line interface.
The implementation is far from perfect. Some improvements are waiting in its previous location: lp:~openerp/openerp-command. Some docs are provided, see doc/openerp-command.rst and doc/adding-command.rst. bzr revid: vmt@openerp.com-20130111134657-im2f3uqjluyo4pm6
Diffstat (limited to 'openerpcommand/main.py')
-rw-r--r--openerpcommand/main.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/openerpcommand/main.py b/openerpcommand/main.py
new file mode 100644
index 00000000000..f5a1b03f774
--- /dev/null
+++ b/openerpcommand/main.py
@@ -0,0 +1,7 @@
+import openerpcommand
+
+def run():
+ """ Main entry point for the openerp-command tool."""
+ parser = openerpcommand.main_parser()
+ args = parser.parse_args()
+ args.run(args)