summaryrefslogtreecommitdiffstats
path: root/scripts/func
blob: da2f50e95d129da562aa7d6a887313e9c3d0cf48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/python

##
## Copyright 2007-2008, Red Hat Inc
## Michael DeHaan <mdehaan@redhat.com>
## Adrian Likins <alikins@redhat.com>
## Seth Vidal <skvidal@redhat.com>
##
## This software may be freely redistributed under the terms of the GNU
## general public license.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


import sys
import distutils.sysconfig
from func.CommonErrors import Func_Client_Exception

# sys.path.append("%s/func" % distutils.sysconfig.get_python_lib())

import func.overlord.func_command as func_command

myname, argv = sys.argv[0], sys.argv[1:]
cli = func_command.FuncCommandLine()
try:
    cli.parse(argv)
except Func_Client_Exception, e:
    print "ERROR:", e
    sys.exit(1)