Formatting

parent b28d53d3
...@@ -31,7 +31,6 @@ import sys ...@@ -31,7 +31,6 @@ import sys
from optparse import OptionParser, Option from optparse import OptionParser, Option
import ConfigParser import ConfigParser
class Parser(OptionParser): class Parser(OptionParser):
""" """
Parse all arguments. Parse all arguments.
...@@ -52,9 +51,7 @@ class Parser(OptionParser): ...@@ -52,9 +51,7 @@ class Parser(OptionParser):
Option("-c", "--cert_file", Option("-c", "--cert_file",
action="store", action="store",
help="SSL Authorisation certificate file.") help="SSL Authorisation certificate file.")
]) ])
#TODO option list
def check_args(self): def check_args(self):
""" """
...@@ -88,11 +85,8 @@ class Config: ...@@ -88,11 +85,8 @@ class Config:
if not self.master_url: if not self.master_url:
raise ValueError('master-url is required.') raise ValueError('master-url is required.')
def run(): def run():
usage = "usage: %s [options] CONFIGURATION_FILE" % sys.argv[0] usage = "usage: %s [options] CONFIGURATION_FILE" % sys.argv[0]
# Parse arguments # Parse arguments
config = Config() config = Config()
config.setConfig(*Parser(usage=usage).check_args()) config.setConfig(*Parser(usage=usage).check_args())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment