diff options
author | mattab <matthieu.aubry@gmail.com> | 2017-06-09 06:01:03 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2017-06-09 06:03:24 +0300 |
commit | 57cb99a9c2929ac244eee7fcd9f6fdb20cd861c7 (patch) | |
tree | 93e2c915f75a27c614ce969fb4d3d71e64e6aa7f | |
parent | 5859d388ee788efd9cf3de38358d9daffc46351b (diff) |
fixes #11774 Make help text better for config:set command
-rw-r--r-- | plugins/CoreAdminHome/Commands/SetConfig.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/plugins/CoreAdminHome/Commands/SetConfig.php b/plugins/CoreAdminHome/Commands/SetConfig.php index 9f2d6f0b9a..8b80c6905e 100644 --- a/plugins/CoreAdminHome/Commands/SetConfig.php +++ b/plugins/CoreAdminHome/Commands/SetConfig.php @@ -34,20 +34,23 @@ You can set config values two ways, via --section, --key, --value or by command To use --section, --key, --value, simply supply those options. You can only set one setting this way, and you cannot append to arrays. -To use arguments, supply one or more arguments in the following format: Section.config_setting_name=\"value\" -'Section' is the name of the section, 'config_setting_name' the name of the setting and 'value' is the value. -NOTE: 'value' must be JSON encoded, so Section.config_setting_name=\"value\" would work but -Section.config_setting_name=value would not. +To use arguments, supply one or more arguments in the following format: +$ ./console config:set 'Section.config_setting_name=\"value\"' +'Section' is the name of the section, +'config_setting_name' the name of the setting and +'value' is the value. -To append to an array setting, supply an argument like this: Section.config_setting_name[]=\"value to append\" +NOTE: 'value' must be JSON encoded, so 'Section.config_setting_name=\"value\"' would work but 'Section.config_setting_name=value' would not. + +To append to an array setting, supply an argument like this: +$ ./console config:set 'Section.config_setting_name[]=\"value to append\"' + +To reset an array setting, supply an argument like this: +$ ./console config:set 'Section.config_setting_name=[]' -To reset an array setting, supply an argument like this: Section.config_setting_name=[] Resetting an array will not work if the array has default values in global.ini.php (such as, [log] log_writers). In this case the values in global.ini.php will be used, since there is no way to explicitly set an array setting to empty in INI config. - -Use the --piwik-domain option to specify which instance to modify. - "); } |