diff options
Diffstat (limited to 'src/sbin')
-rwxr-xr-x | src/sbin/bcfg2 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 7b1faee1f..ef7bc59ad 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -7,6 +7,7 @@ import logging import os import signal import socket +import sys import tempfile import time import xmlrpclib @@ -68,9 +69,10 @@ class Client: 'key': Bcfg2.Options.SERVER_KEY, } - optparser = Bcfg2.Options.OptionParser(optinfo) - self.setup = optparser.parse() + self.setup = Bcfg2.Options.OptionParser(optinfo) + self.setup.parse(sys.argv[1:]) + print self.setup level = 30 if self.setup['verbose']: level = 20 |