summaryrefslogtreecommitdiff
path: root/doc/ja
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-06-26 21:20:01 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-06-26 21:20:01 +0200
commitb1ab2a0c50b328d0f5047e2a43efd96d7cd3ac12 (patch)
treefc04af1b886e143a6d09d052e0a514a0876b83ad /doc/ja
parent33ee8036099114e5c13ff44ba89a915f13922e59 (diff)
downloadweechat-b1ab2a0c50b328d0f5047e2a43efd96d7cd3ac12.zip
doc: add description of arguments sent to the weechat_plugin_init plugin function (plugin API reference)
Diffstat (limited to 'doc/ja')
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc31
1 files changed, 29 insertions, 2 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index b9da4e855..fad46760f 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -100,14 +100,41 @@ int weechat_plugin_init (struct t_weechat_plugin *plugin,
* _plugin_: WeeChat プラグイン構造体へのポインタ。これはグローバルポインタ
`weechat_plugin` を初期化する際に使われます
-* _argc_: プラグインに対する引数の数 (ユーザがコマンドラインで指定)
-* _argv_: プラグインに対する引数
+* _argc_: プラグインに対する引数の数
+// TRANSLATION MISSING
+* _argv_: プラグインに対する引数 (see below)
戻り値:
* _WEECHAT_RC_OK_ 成功した場合 (プラグインをロードします)
* _WEECHAT_RC_ERROR_ エラーが起きた場合 (プラグインをロードしません)
+// TRANSLATION MISSING
+[[plugin_arguments]]
+===== Plugin arguments
+
+When the plugin is loaded by WeeChat, it receives the list of arguments
+in parameter `argv` and the number of arguments in `argc`.
+
+The arguments can be:
+
+* command line arguments when running the WeeChat binary,
+* arguments given to the command `/plugin load xxx`, when the plugin is manually
+ loaded by the user.
+
+When the arguments come from the command line, only these arguments are sent to
+the plugin:
+
+*-a*, *--no-connect*::
+ WeeChat の起動時にサーバへの自動接続を行わない
+
+*-s*, *--no-script*::
+ スクリプトの自動ロードを止める
+
+*plugin:option*::
+ Option for a plugin: only the plugin-related options are sent, for example
+ only the options starting with `irc:` are sent to the plugin called "irc".
+
[[plugin_priority]]
===== プラグインの優先度