diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-12-20 14:37:35 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-12-20 14:37:35 +0000 |
commit | 503350f46b5720dcd3fea9273296d03c752b71d6 (patch) | |
tree | 9d7f211862971a4a1e02a4185cb65c92bbfce962 /src/common | |
parent | 7c1c8cd874012939b4a4657cebe004c618f30558 (diff) | |
download | weechat-503350f46b5720dcd3fea9273296d03c752b71d6.zip |
Changed some command outputs for doc
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/command.c | 69 | ||||
-rw-r--r-- | src/common/weechat.c | 46 |
2 files changed, 61 insertions, 54 deletions
diff --git a/src/common/command.c b/src/common/command.c index 1eaa7f641..222e1154b 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -44,18 +44,21 @@ t_weechat_command weechat_commands[] = { { "alias", N_("create an alias for a command"), N_("[alias_name [command [arguments]]"), - N_("alias_name: name of alias\ncommand: command name (WeeChat " - "or IRC command, without first '/')\n" "arguments: arguments for command"), + N_("alias_name: name of alias\n" + " command: command name (WeeChat or IRC command, without " + "first '/')\n" + "arguments: arguments for command"), "%- %A", 0, MAX_ARGS, NULL, weechat_cmd_alias }, { "buffer", N_("manage buffers"), N_("[action | number | [[server] [channel]]]"), - N_("action: action to do:\n" - " move: move buffer in the list (may be relative, for example -1)\n" + N_(" action: action to do:\n" + " move: move buffer in the list (may be relative, for example -1)\n" " close: close buffer (for channel: same as /part without part message)\n" - " list: list opened buffers (no parameter implies this list)\n" - " notify: set notify level for buffer (0=never, 1=highlight, 2=1+msg, 3=2+join/part)\n" - "server,channel: jump to buffer by server and/or channel name\n" - "number: jump to buffer by number"), + " list: list opened buffers (no parameter implies this list)\n" + " notify: set notify level for buffer (0=never, 1=highlight, 2=1+msg, 3=2+join/part)\n" + "server\n" + "channel: jump to buffer by server and/or channel name\n" + " number: jump to buffer by number"), "move|close|list|notify", 0, MAX_ARGS, weechat_cmd_buffer, NULL }, { "charset", N_("change charset for server or channel"), N_("[(decode_iso | decode_utf | encode) charset]"), @@ -78,7 +81,7 @@ t_weechat_command weechat_commands[] = "%S", 0, 1, weechat_cmd_disconnect, NULL }, { "debug", N_("print debug messages"), N_("dump | windows"), - N_("dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)\n" + N_(" dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)\n" "windows: display windows tree"), "dump|windows", 1, 1, weechat_cmd_debug, NULL }, { "help", N_("display help about commands"), @@ -103,10 +106,12 @@ t_weechat_command weechat_commands[] = 0, 4, weechat_cmd_ignore, NULL }, { "key", N_("bind/unbind keys"), N_("[key function/command] [unbind key] [functions] [reset -yes]"), - N_("key: bind this key to an internal function or a command (beginning by \"/\")\n" - "unbind: unbind a key\n" + N_(" key: bind this key to an internal function or a command " + "(beginning by \"/\")\n" + " unbind: unbind a key\n" "functions: list internal functions for key bindings\n" - "reset: restore bindings to the default values and delete ALL personal binding (use carefully!)"), + " reset: restore bindings to the default values and delete ALL " + "personal bindings (use carefully!)"), "unbind|functions|reset %k", 0, MAX_ARGS, NULL, weechat_cmd_key }, { "plugin", N_("list/load/unload plugins"), N_("[load filename] | [autoload] | [reload] | [unload]"), @@ -120,16 +125,16 @@ t_weechat_command weechat_commands[] = "[-command command] [-autojoin channel[,channel]] ] | " "[del servername]"), N_("servername: server name, for internal & display use\n" - "hostname: name or IP address of server\n" - "port: port for server (integer)\n" - "ipv6: use IPv6 protocol\n" - "ssl: use SSL protocol\n" - "password: password for server\n" - "nick1: first nick for server\n" - "nick2: alternate nick for server\n" - "nick3: second alternate nick for server\n" - "username: user name\n" - "realname: real name of user"), + " hostname: name or IP address of server\n" + " port: port for server (integer)\n" + " ipv6: use IPv6 protocol\n" + " ssl: use SSL protocol\n" + " password: password for server\n" + " nick1: first nick for server\n" + " nick2: alternate nick for server\n" + " nick3: second alternate nick for server\n" + " username: user name\n" + " realname: real name of user"), NULL, 0, MAX_ARGS, weechat_cmd_server, NULL }, { "save", N_("save config to disk"), N_("[file]"), N_("file: filename for writing config"), @@ -164,18 +169,18 @@ t_weechat_command weechat_commands[] = { "window", N_("manage windows"), N_("[list | -1 | +1 | b# | up | down | left | right | splith [pct] " "| splitv [pct] | resize pct | merge [all]]"), - N_("list: list opened windows (no parameter implies this list)\n" - "-1: jump to previous window\n" - "+1: jump to next window\n" - "b#: jump to next window displaying buffer number #\n" - "up: switch to window above current one\n" - "down: switch to window below current one\n" - "left: switch to window on the left\n" - "right: switch to window on the right\n" + N_(" list: list opened windows (no parameter implies this list)\n" + " -1: jump to previous window\n" + " +1: jump to next window\n" + " b#: jump to next window displaying buffer number #\n" + " up: switch to window above current one\n" + " down: switch to window below current one\n" + " left: switch to window on the left\n" + " right: switch to window on the right\n" "splith: split current window horizontally\n" "splitv: split current window vertically\n" - "resize: resize window size, new size is <pct>%% of parent window\n" - "merge: merge window with another (all = keep only one window)\n\n" + "resize: resize window size, new size is pct%% of parent window\n" + " merge: merge window with another (all = keep only one window)\n\n" "For splith and splitv, pct is a pourcentage which represents " "size of new window, computed with current window as size reference. " "For example 25 means create a new window with size = current_size / 4"), diff --git a/src/common/weechat.c b/src/common/weechat.c index 27fb267f2..2ffcf9ac6 100644 --- a/src/common/weechat.c +++ b/src/common/weechat.c @@ -333,57 +333,59 @@ weechat_display_config_options () switch (weechat_options[i][j].option_type) { case OPTION_TYPE_BOOLEAN: - printf (_(" . type boolean (values: 'on' or 'off')\n")); + printf (_(" . type: boolean\n")); + printf (_(" . values: 'on' or 'off'\n")); printf (_(" . default value: '%s'\n"), - (weechat_options[i][j].default_int == BOOL_TRUE) ? - "on" : "off"); + (weechat_options[i][j].default_int == BOOL_TRUE) ? + "on" : "off"); break; case OPTION_TYPE_INT: - printf (_(" . type integer (values: between %d and %d)\n"), - weechat_options[i][j].min, - weechat_options[i][j].max); + printf (_(" . type: integer\n")); + printf (_(" . values: between %d and %d\n"), + weechat_options[i][j].min, + weechat_options[i][j].max); printf (_(" . default value: %d\n"), - weechat_options[i][j].default_int); + weechat_options[i][j].default_int); break; case OPTION_TYPE_INT_WITH_STRING: - printf (_(" . type string (values: ")); + printf (_(" . type: string\n")); + printf (_(" . values: ")); k = 0; while (weechat_options[i][j].array_values[k]) { printf ("'%s'", - weechat_options[i][j].array_values[k]); + weechat_options[i][j].array_values[k]); if (weechat_options[i][j].array_values[k + 1]) printf (", "); k++; } - printf (")\n"); + printf ("\n"); printf (_(" . default value: '%s'\n"), - (weechat_options[i][j].default_string) ? - weechat_options[i][j].default_string : _("empty")); + (weechat_options[i][j].default_string) ? + weechat_options[i][j].default_string : _("empty")); break; case OPTION_TYPE_COLOR: - printf (_(" . type color (Curses or Gtk color, look at WeeChat doc)\n")); + printf (_(" . type: color\n")); + printf (_(" . values: Curses or Gtk color\n")); printf (_(" . default value: '%s'\n"), - (weechat_options[i][j].default_string) ? - weechat_options[i][j].default_string : _("empty")); + (weechat_options[i][j].default_string) ? + weechat_options[i][j].default_string : _("empty")); break; case OPTION_TYPE_STRING: - printf (_(" . type string (any string)\n")); + printf (_(" . type: string\n")); + printf (_(" . values: any string\n")); printf (_(" . default value: '%s'\n"), - (weechat_options[i][j].default_string) ? - weechat_options[i][j].default_string : _("empty")); + (weechat_options[i][j].default_string) ? + weechat_options[i][j].default_string : _("empty")); break; } printf (_(" . description: %s\n"), - _(weechat_options[i][j].long_description)); + _(weechat_options[i][j].long_description)); printf ("\n"); j++; } } } - printf (_("Moreover, you can define aliases in [alias] section, by adding lines like:\n")); - printf ("j=join\n"); - printf (_("where 'j' is alias name, and 'join' associated command.\n\n")); } /* |