import collecty
# Parse command line options.
-op = optparse.OptionParser(usage="usage: %prog [options] <configfile1> ... <configfileN>")
+op = optparse.OptionParser(usage="usage: %prog [options]")
op.add_option("-d", "--debug", action="store_true", default=False,
help="Enable debug logging.")
-(options, configfiles) = op.parse_args()
+(options, args) = op.parse_args()
# Initialize the settings for this Collecty instance.
settings = {
# Initialize the application.
c = collecty.Collecty(**settings)
-# Read all configuration files.
-for configfile in configfiles:
- c.read_config(configfile)
-
# Run.
c.run()