cli: improve --config and --profile help text

Move "--profile" to the top of the argument list so it's easier to see
in --help. Most users should use --profile instead of --config.

Explain what the default --profile value is (it's progname).

Reword the "--config" help text to explain that this overrides a
profile's settings using a separate configuration file.
This commit is contained in:
Ken Dreyer 2021-08-12 16:12:39 -04:00 committed by Tomas Kopecek
parent f361554067
commit c6ad839942

View file

@ -115,10 +115,10 @@ def get_options():
"%(origin_format_help)s%(epilog)s" % ({
'origin_format_help': parser.origin_format_help(formatter),
'epilog': get_epilog_str()}))
parser.add_option("-c", "--config", dest="configFile",
help=_("use alternate configuration file"), metavar="FILE")
parser.add_option("-p", "--profile", default=progname,
help=_("specify a configuration profile"))
help=_("specify a configuration profile. default: %s" % progname))
parser.add_option("-c", "--config", dest="configFile",
help=_("load profile's settings from another file"), metavar="FILE")
parser.add_option("--keytab", help=_("specify a Kerberos keytab to use"), metavar="FILE")
parser.add_option("--principal", help=_("specify a Kerberos principal to use"))
parser.add_option("--cert", help=_("specify a SSL cert to use"), metavar="FILE")