This commit is contained in:
Guillaume Ayoub 2013-01-16 11:16:16 +01:00
parent 1e95713b61
commit 151f82c593

View File

@ -78,13 +78,13 @@ def run():
default=config.getboolean("logging", "debug"), default=config.getboolean("logging", "debug"),
help="print debug information") help="print debug information")
parser.add_option( parser.add_option(
"-C", "--config",default='', "-C", "--config",
help='use a specific configuration file') help="use a specific configuration file")
options = parser.parse_args()[0] options = parser.parse_args()[0]
# Read in the configuration specified by the command line (if specified) # Read in the configuration specified by the command line (if specified)
if options.config != '': if options.config:
config.read(options.config) config.read(options.config)
# Update Radicale configuration according to options # Update Radicale configuration according to options