[options] Rename --default-language to --lang

This commit is contained in:
Yen Chi Hsuan 2016-01-02 01:13:26 +08:00
parent ca28223111
commit 3242f7edd2
2 changed files with 4 additions and 4 deletions

View File

@ -57,8 +57,8 @@ def _real_main(argv=None):
parser, opts, args = parseOpts(argv)
if opts.default_language is not None:
i18n_service.set_default_language(opts.default_language)
if opts.i18n_language is not None:
i18n_service.set_default_language(opts.i18n_language)
if opts.verbose:
i18n_service.set_default_language('en_US')

View File

@ -176,8 +176,8 @@ def parseOpts(overrideArguments=None):
default=False,
help='Do not emit color codes in output')
general.add_option(
'--default-language',
dest='default_language', metavar='LANG_CODE',
'--lang',
dest='i18n_language', metavar='LANG_CODE',
help='Specify the default user interface language. Language codes should correspond to RFC 1766 standard, such as en_US or zh_TW.UTF-8. Default is en_US.')
network = optparse.OptionGroup(parser, 'Network Options')