Browse Source

Updated man page for --on-download-start. Mentioned about 2 new
arguments.

Tatsuhiro Tsujikawa 15 years ago
parent
commit
044e6df7ac
1 changed files with 9 additions and 3 deletions
  1. 9 3
      doc/aria2c.1.asciidoc

+ 9 - 3
doc/aria2c.1.asciidoc

@@ -951,9 +951,15 @@ name.
 
 [[aria2_optref_on_download_start]]*--on-download-start*=COMMAND::
 
-  Set the command to be executed when download starts up. COMMAND must
-  take just one argument and GID is passed to COMMAND as a first
-  argument.  Possible Values: '/path/to/command'
+  Set the command to be executed when download starts up.  aria2
+  passes GID, number of files and file path in this order to COMMAND.
+  If number of files is more than one, file path is first one.  In
+  other words, this is the value of path key of first struct whose
+  selected key is true in the response of
+  *<<aria2_xmlrpc_aria2_getFiles, aria2.getFiles>>*
+  XML-RPC method.  Please note that file path may change during download in
+  HTTP because of redirection or Content-Disposition header.  Possible
+  Values: '/path/to/command'
 
 [[aria2_optref_on_download_stop]]*--on-download-stop*=COMMAND::