add usage string to option parser

parent 8760bfe1
......@@ -247,7 +247,8 @@ class Cli(cmd.Cmd, Suite):
do_h = cmd.Cmd.do_help
def main1():
parser = OptionParser()
usage = '%prog: [options] test ...'
parser = OptionParser(usage)
parser.add_option("-c", "--config", dest="config",
default="tpsdefault.cfg",
help="config file name")
......
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