diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-10-21 19:10:37 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-10-21 19:10:37 +0200 |
commit | 0ff08e54f5f0715c2e4c27a8c987d844be1a462e (patch) | |
tree | 9c3e2fbaadcadfd7e2a5be9bd7f05149ca100563 /doc/en/weechat_user.en.adoc | |
parent | 30e48336f46ff68598e9007445dbfa9f5dd00865 (diff) | |
download | weechat-0ff08e54f5f0715c2e4c27a8c987d844be1a462e.zip |
trigger: add variable "tg_argc" in data set by command trigger (closes #1576)
Diffstat (limited to 'doc/en/weechat_user.en.adoc')
-rw-r--r-- | doc/en/weechat_user.en.adoc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index 75dd78e22..e06a27a59 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -4205,8 +4205,9 @@ The "command" callback sets following variables in hashtable: |=== | Variable | Type | Description | buffer | pointer | Buffer. -| tg_argvN | string | Argument #N. -| tg_argv_eolN | string | From argument #N until end of arguments. +| tg_argc | string | The number of arguments (the command itself counts for one). +| tg_argvN | string | Argument #N (`+tg_argv0+` is the command itself, the others are command arguments). +| tg_argv_eolN | string | From argument #N until end of arguments (`+tg_argv_eol0+` includes the command itself). |=== [[trigger_data_command_run]] |