79
81
parser = OptionParser(usage='usage: %prog [options]', version='%prog ' + release.version)
80
82
parser.add_option('-f', '--foreground', action='store_true', dest='foreground', default=False,
81
83
help="run in the foreground; don't daemonize")
82
84
parser.add_option('-C', '--check', action='store_true', dest='check', default=False,
83
85
help="only start if not already running (useful for cron jobs)")
86
parser.add_option('-p', '--pidfile', dest="pidfile", default=default_pidfile,
84
88
options, args = parser.parse_args()
86
90
parser.error('No filename arguments are used, only options.')