From d728cd2696ecaef0f1070faf3c12ce1fd2819c6f Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Tue, 11 Aug 2020 12:48:15 +0200 Subject: [PATCH] Rename CLI flag syntax for settings override feature --- pelican/__init__.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pelican/__init__.py b/pelican/__init__.py index 9204d952..82366117 100644 --- a/pelican/__init__.py +++ b/pelican/__init__.py @@ -335,14 +335,12 @@ def parse_arguments(argv=None): help='IP to bind to when serving files via HTTP ' '(default: 127.0.0.1)') - parser.add_argument('-c', '--setting-overrides', dest='overrides', - help='Specify one ore more SETTING=VALUE pairs ' - '(without spaces around =) to override ' - 'settings files. If VALUE contains spaces, add quotes: ' - 'SETTING="VALUE". ' - 'Integers and strings are autoconverted, other values ' - 'can be passed in in json notation, ' - 'e.g. SETTING=none', + parser.add_argument('-e', '--extra-settings', dest='overrides', + help='Specify one or more SETTING=VALUE pairs to ' + 'override settings. If VALUE contains spaces, ' + 'add quotes: SETTING="VALUE". Values other than ' + 'integers and strings can be specified via JSON ' + 'notation. (e.g., SETTING=none)', nargs='*', action=ParseDict )