239
239
parser = OptionParser(version=VERSION)
240
240
parser.add_option("-c", "--config", metavar="FILE",
241
241
help="Use config from this file (any command line "
242
"options override settings from the file).")
242
"options override settings from the file) "
243
"(default: '/etc/landscape/client.conf').")
243
244
parser.add_option("--bus", default="system",
244
245
help="Which DBUS bus to use. One of 'session' "
246
"or 'system' (default: 'system').")
248
249
def get_config_filename(self):
296
297
parser = super(Configuration, self).make_parser()
297
298
parser.add_option("-d", "--data-path", metavar="PATH",
298
299
default="/var/lib/landscape/client/",
299
help="The directory to store data files in.")
300
help="The directory to store data files in "
301
"(default: '/var/lib/landscape/client/').")
300
302
parser.add_option("-q", "--quiet", default=False, action="store_true",
301
303
help="Do not log to the standard output.")
302
304
parser.add_option("-l", "--log-dir", metavar="FILE",
303
help="The directory to write log files to.",
305
help="The directory to write log files to "
306
"(default: '/var/log/landscape').",
304
307
default="/var/log/landscape")
305
308
parser.add_option("--log-level", default="info",
306
309
help="One of debug, info, warning, error or "
308
311
parser.add_option("--ignore-sigint", action="store_true", default=False,
309
help="Ignore interrupt signals. ")
312
help="Ignore interrupt signals.")
310
313
parser.add_option("--ignore-sigusr1", action="store_true", default=False,
311
help="Ignore SIGUSR1 signal to rotate logs. ")
314
help="Ignore SIGUSR1 signal to rotate logs.")