# HG changeset patch # User David Demelier # Date 1480594978 -3600 # Node ID b81c6fdec22ee593d3e820873ef29e8438af487d # Parent 6f4960acb9dc79ce4d1beb9e11e9626564f3dd9e Docs: add documentation about plugin-config command diff -r 6f4960acb9dc -r b81c6fdec22e doc/html/CMakeLists.txt --- a/doc/html/CMakeLists.txt Thu Dec 01 13:22:29 2016 +0100 +++ b/doc/html/CMakeLists.txt Thu Dec 01 13:22:58 2016 +0100 @@ -149,6 +149,7 @@ ${html_SOURCE_DIR}/irccdctl/usage.md ${html_SOURCE_DIR}/irccdctl/command/index.md ${html_SOURCE_DIR}/irccdctl/command/help.md + ${html_SOURCE_DIR}/irccdctl/command/plugin-config.md ${html_SOURCE_DIR}/irccdctl/command/plugin-info.md ${html_SOURCE_DIR}/irccdctl/command/plugin-list.md ${html_SOURCE_DIR}/irccdctl/command/plugin-load.md diff -r 6f4960acb9dc -r b81c6fdec22e doc/html/irccdctl/command/index.md --- a/doc/html/irccdctl/command/index.md Thu Dec 01 13:22:29 2016 +0100 +++ b/doc/html/irccdctl/command/index.md Thu Dec 01 13:22:58 2016 +0100 @@ -4,6 +4,7 @@ --- - [help](help.html) + - [plugin-config](plugin-config.html) - [plugin-info](plugin-info.html) - [plugin-list](plugin-list.html) - [plugin-load](plugin-load.html) diff -r 6f4960acb9dc -r b81c6fdec22e doc/html/irccdctl/command/plugin-config.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/html/irccdctl/command/plugin-config.md Thu Dec 01 13:22:58 2016 +0100 @@ -0,0 +1,26 @@ +--- +title: plugin-config +guide: yes +--- + +# plugin-config + +Get or set a plugin configuration variable. + +If both variable and value are provided, sets the plugin configuration to the +respective variable name and value. + +If only variable is specified, shows its current value. Otherwise, list all +variables and their values. + +## Usage + +````nohighlight +$ irccdctl plugin-config plugin [variable] [value] +```` + +## Example + +````nohighlight +$ irccdctl plugin-config ask +```` diff -r 6f4960acb9dc -r b81c6fdec22e doc/html/irccdctl/index.md --- a/doc/html/irccdctl/index.md Thu Dec 01 13:22:29 2016 +0100 +++ b/doc/html/irccdctl/index.md Thu Dec 01 13:22:58 2016 +0100 @@ -12,6 +12,7 @@ # List of support commands - [help](command/help.html) + - [plugin-config](command/plugin-config.html) - [plugin-info](command/plugin-info.html) - [plugin-list](command/plugin-list.html) - [plugin-load](command/plugin-load.html) diff -r 6f4960acb9dc -r b81c6fdec22e irccdctl/cli.cpp --- a/irccdctl/cli.cpp Thu Dec 01 13:22:29 2016 +0100 +++ b/irccdctl/cli.cpp Thu Dec 01 13:22:58 2016 +0100 @@ -132,7 +132,11 @@ : Cli("plugin-config", "configure a plugin", "plugin-config plugin [variable] [value]", - "Get or set plugin configuration.\n\n" + "Get or set a plugin configuration variable.\n\n" + "If both variable and value are provided, sets the plugin configuration " + "to the\nrespective variable name and value.\n\n" + "If only variable is specified, shows its current value. Otherwise, list " + "all\nvariables and their values.\n\n" "Examples:\n" "\tirccdctl plugin-config ask") {