Commit 09312dad authored by Hartmut Goebel's avatar Hartmut Goebel
Browse files

Better help message for --option

parent 875c3106
...@@ -75,7 +75,8 @@ if __name__ == '__main__': ...@@ -75,7 +75,8 @@ if __name__ == '__main__':
parser.add_option('-o', '--option', action='callback', parser.add_option('-o', '--option', action='callback',
dest='options', dest='options',
default={}, callback=__opt_option, type='string', default={}, callback=__opt_option, type='string',
help='activate option (name and value separated by a colon (`:`)') help="activate option (name and value separated by a "
"colon (`:`), may be given multiple times)")
options, args = parser.parse_args() options, args = parser.parse_args()
if args: if args:
...@@ -93,7 +94,7 @@ if __name__ == '__main__': ...@@ -93,7 +94,7 @@ if __name__ == '__main__':
except IOError: except IOError:
print "Config file %r not found, ignoring" % options.configfile print "Config file %r not found, ignoring" % options.configfile
# copy options pass by -o/--option into config # copy options passed by -o/--option into config
config.update(dict(options.options)) config.update(dict(options.options))
if options.logfile: if options.logfile:
......
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