2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Made --continue, --daemon, --no-conf, --no-netrc and --show-files
	option take optional argument.
	* doc/aria2c.1.txt
	* src/OptionHandlerFactory.cc
	* src/usage_text.h
pull/1/head
Tatsuhiro Tsujikawa 2010-11-23 13:59:03 +00:00
parent 752234ae66
commit b2fbe2c896
6 changed files with 40 additions and 32 deletions

View File

@ -1,3 +1,11 @@
2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made --continue, --daemon, --no-conf, --no-netrc and --show-files
option take optional argument.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
* src/usage_text.h
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added BtSeederStateChoke::PeerEntry::swap(). Also added Added BtSeederStateChoke::PeerEntry::swap(). Also added

View File

@ -2,12 +2,12 @@
.\" Title: aria2c .\" Title: aria2c
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/> .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 10/31/2010 .\" Date: 11/23/2010
.\" Manual: Aria2 Manual .\" Manual: Aria2 Manual
.\" Source: Aria2 1.10.6 .\" Source: Aria2 1.10.6
.\" Language: English .\" Language: English
.\" .\"
.TH "ARIA2C" "1" "10/31/2010" "Aria2 1\&.10\&.6" "Aria2 Manual" .TH "ARIA2C" "1" "11/23/2010" "Aria2 1\&.10\&.6" "Aria2 Manual"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -79,7 +79,7 @@ Check file integrity by validating piece hashes or a hash of entire file\&. This
\fIfalse\fR \fIfalse\fR
.RE .RE
.PP .PP
\fB\-c\fR, \fB\-\-continue\fR \fB\-c\fR, \fB\-\-continue\fR[=\fItrue\fR|\fIfalse\fR]
.RS 4 .RS 4
Continue downloading a partially downloaded file\&. Use this option to resume a download started by a web browser or another program which downloads files sequentially from the beginning\&. Currently this option is only applicable to HTTP(S)/FTP downloads\&. Continue downloading a partially downloaded file\&. Use this option to resume a download started by a web browser or another program which downloads files sequentially from the beginning\&. Currently this option is only applicable to HTTP(S)/FTP downloads\&.
.RE .RE
@ -209,7 +209,7 @@ Default:
\fI20M\fR \fI20M\fR
.RE .RE
.PP .PP
\fB\-n\fR, \fB\-\-no\-netrc\fR \fB\-n\fR, \fB\-\-no\-netrc\fR[=\fItrue\fR|\fIfalse\fR]
.RS 4 .RS 4
Disables netrc support\&. netrc support is enabled by default\&. Disables netrc support\&. netrc support is enabled by default\&.
.RE .RE
@ -636,7 +636,7 @@ In multi file torrent, the adjacent files specified by this option may also be d
.sp .5v .sp .5v
.RE .RE
.PP .PP
\fB\-S\fR, \fB\-\-show\-files\fR \fB\-S\fR, \fB\-\-show\-files\fR[=\fItrue\fR|\fIfalse\fR]
.RS 4 .RS 4
Print file listing of \&.torrent or \&.metalink file and exit\&. In case of \&.torrent file, additional information (infohash, piece length, etc) is also printed\&. Print file listing of \&.torrent or \&.metalink file and exit\&. In case of \&.torrent file, additional information (infohash, piece length, etc) is also printed\&.
.RE .RE
@ -1185,7 +1185,7 @@ Change the configuration file path to PATH\&. Default:
\fI$HOME/\&.aria2/aria2\&.conf\fR \fI$HOME/\&.aria2/aria2\&.conf\fR
.RE .RE
.PP .PP
\fB\-D\fR, \fB\-\-daemon\fR \fB\-D\fR, \fB\-\-daemon\fR[=\fItrue\fR|\fIfalse\fR]
.RS 4 .RS 4
Run as daemon\&. The current working directory will be changed to Run as daemon\&. The current working directory will be changed to
\fI/\fR \fI/\fR
@ -1428,7 +1428,7 @@ option\&. Default:
\fI0\fR \fI0\fR
.RE .RE
.PP .PP
\fB\-\-no\-conf\fR \fB\-\-no\-conf\fR[=\fItrue\fR|\fIfalse\fR]
.RS 4 .RS 4
Disable loading aria2\&.conf file\&. Disable loading aria2\&.conf file\&.
.RE .RE

View File

@ -661,7 +661,7 @@ downloading a file like BitTorrent.</p></div>
</p> </p>
</dd> </dd>
<dt class="hdlist1"> <dt class="hdlist1">
<a id="aria2_optref_continue"></a><strong>-c</strong>, <strong>--continue</strong> <a id="aria2_optref_continue"></a><strong>-c</strong>, <strong>--continue</strong>[=<em>true</em>|<em>false</em>]
</dt> </dt>
<dd> <dd>
<p> <p>
@ -820,7 +820,7 @@ then you get HTTP proxy "http://proxy" with user "user" and password
</p> </p>
</dd> </dd>
<dt class="hdlist1"> <dt class="hdlist1">
<a id="aria2_optref_no_netrc"></a><strong>-n</strong>, <strong>--no-netrc</strong> <a id="aria2_optref_no_netrc"></a><strong>-n</strong>, <strong>--no-netrc</strong>[=<em>true</em>|<em>false</em>]
</dt> </dt>
<dd> <dd>
<p> <p>
@ -1344,7 +1344,7 @@ writes the piece to the appropriate files.</td>
</div> </div>
<div class="dlist"><dl> <div class="dlist"><dl>
<dt class="hdlist1"> <dt class="hdlist1">
<a id="aria2_optref_show_files"></a><strong>-S</strong>, <strong>--show-files</strong> <a id="aria2_optref_show_files"></a><strong>-S</strong>, <strong>--show-files</strong>[=<em>true</em>|<em>false</em>]
</dt> </dt>
<dd> <dd>
<p> <p>
@ -2042,7 +2042,7 @@ writes the piece to the appropriate files.</td>
</p> </p>
</dd> </dd>
<dt class="hdlist1"> <dt class="hdlist1">
<a id="aria2_optref_daemon"></a><strong>-D</strong>, <strong>--daemon</strong> <a id="aria2_optref_daemon"></a><strong>-D</strong>, <strong>--daemon</strong>[=<em>true</em>|<em>false</em>]
</dt> </dt>
<dd> <dd>
<p> <p>
@ -2306,7 +2306,7 @@ are also allocated if they share the same piece.</td>
</p> </p>
</dd> </dd>
<dt class="hdlist1"> <dt class="hdlist1">
<a id="aria2_optref_no_conf"></a><strong>--no-conf</strong> <a id="aria2_optref_no_conf"></a><strong>--no-conf</strong>[=<em>true</em>|<em>false</em>]
</dt> </dt>
<dd> <dd>
<p> <p>
@ -4708,7 +4708,7 @@ files in the program, then also delete it here.</p></div>
<div id="footnotes"><hr /></div> <div id="footnotes"><hr /></div>
<div id="footer"> <div id="footer">
<div id="footer-text"> <div id="footer-text">
Last updated 2010-10-31 17:52:01 JST Last updated 2010-11-23 22:54:53 JST
</div> </div>
</div> </div>
</body> </body>

View File

@ -63,7 +63,7 @@ Basic Options
hashes and a hash of entire file are provided, only piece hashes are hashes and a hash of entire file are provided, only piece hashes are
used. Default: 'false' used. Default: 'false'
[[aria2_optref_continue]]*-c*, *--continue*:: [[aria2_optref_continue]]*-c*, *--continue*[='true'|'false']::
Continue downloading a partially downloaded file. Continue downloading a partially downloaded file.
Use this option to resume a download started by a web browser or another Use this option to resume a download started by a web browser or another
program which downloads files sequentially from the beginning. program which downloads files sequentially from the beginning.
@ -161,7 +161,7 @@ then you get HTTP proxy "http://proxy" with user "user" and password
1 source. You can append 'K' or 'M'(1K = 1024, 1M = 1024K). 1 source. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
Possible Values: '1M'-'1024M' Default: '20M' Possible Values: '1M'-'1024M' Default: '20M'
[[aria2_optref_no_netrc]]*-n*, *--no-netrc*:: [[aria2_optref_no_netrc]]*-n*, *--no-netrc*[='true'|'false']::
Disables netrc support. netrc support is enabled by default. Disables netrc support. netrc support is enabled by default.
[[aria2_optref_no_proxy]]*--no-proxy*=DOMAINS:: [[aria2_optref_no_proxy]]*--no-proxy*=DOMAINS::
@ -441,7 +441,7 @@ also be downloaded. This is by design, not a bug.
A single piece may include several files or part of files, and aria2 A single piece may include several files or part of files, and aria2
writes the piece to the appropriate files. writes the piece to the appropriate files.
[[aria2_optref_show_files]]*-S*, *--show-files*:: [[aria2_optref_show_files]]*-S*, *--show-files*[='true'|'false']::
Print file listing of .torrent or .metalink file and exit. Print file listing of .torrent or .metalink file and exit.
In case of .torrent file, additional information In case of .torrent file, additional information
(infohash, piece length, etc) is also printed. (infohash, piece length, etc) is also printed.
@ -831,7 +831,7 @@ Advanced Options
Change the configuration file path to PATH. Change the configuration file path to PATH.
Default: '$HOME/.aria2/aria2.conf' Default: '$HOME/.aria2/aria2.conf'
[[aria2_optref_daemon]]*-D*, *--daemon*:: [[aria2_optref_daemon]]*-D*, *--daemon*[='true'|'false']::
Run as daemon. The current working directory will be changed to '/' Run as daemon. The current working directory will be changed to '/'
and standard input, standard output and standard error will be and standard input, standard output and standard error will be
redirected to '/dev/null'. Default: 'false' redirected to '/dev/null'. Default: 'false'
@ -990,7 +990,7 @@ are also allocated if they share the same piece.
limit the overall download speed, use *<<aria2_optref_max_overall_download_limit, --max-overall-download-limit>>* limit the overall download speed, use *<<aria2_optref_max_overall_download_limit, --max-overall-download-limit>>*
option. Default: '0' option. Default: '0'
[[aria2_optref_no_conf]]*--no-conf*:: [[aria2_optref_no_conf]]*--no-conf*[='true'|'false']::
Disable loading aria2.conf file. Disable loading aria2.conf file.
[[aria2_optref_no_file_allocation_limit]]*--no-file-allocation-limit*=SIZE:: [[aria2_optref_no_file_allocation_limit]]*--no-file-allocation-limit*=SIZE::

View File

@ -144,8 +144,8 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
SharedHandle<OptionHandler> op(new BooleanOptionHandler SharedHandle<OptionHandler> op(new BooleanOptionHandler
(PREF_CONTINUE, (PREF_CONTINUE,
TEXT_CONTINUE, TEXT_CONTINUE,
A2_V_FALSE, // TODO ommit? A2_V_FALSE,
OptionHandler::NO_ARG, OptionHandler::OPT_ARG,
'c')); 'c'));
op->addTag(TAG_BASIC); op->addTag(TAG_BASIC);
op->addTag(TAG_FTP); op->addTag(TAG_FTP);
@ -157,8 +157,8 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
(PREF_DAEMON, (PREF_DAEMON,
TEXT_DAEMON, TEXT_DAEMON,
A2_V_FALSE, A2_V_FALSE,
OptionHandler::NO_ARG, OptionHandler::OPT_ARG,
'D')); // TODO ommit? 'D'));
op->addTag(TAG_ADVANCED); op->addTag(TAG_ADVANCED);
handlers.push_back(op); handlers.push_back(op);
} }
@ -416,7 +416,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
(PREF_NO_CONF, (PREF_NO_CONF,
TEXT_NO_CONF, TEXT_NO_CONF,
A2_V_FALSE, A2_V_FALSE,
OptionHandler::NO_ARG)); OptionHandler::OPT_ARG));
op->addTag(TAG_ADVANCED); op->addTag(TAG_ADVANCED);
handlers.push_back(op); handlers.push_back(op);
} }
@ -653,8 +653,8 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
SharedHandle<OptionHandler> op(new BooleanOptionHandler SharedHandle<OptionHandler> op(new BooleanOptionHandler
(PREF_NO_NETRC, (PREF_NO_NETRC,
TEXT_NO_NETRC, TEXT_NO_NETRC,
A2_V_FALSE, // TODO ommit? A2_V_FALSE,
OptionHandler::NO_ARG, OptionHandler::OPT_ARG,
'n')); 'n'));
op->addTag(TAG_FTP); op->addTag(TAG_FTP);
op->addTag(TAG_HTTP); op->addTag(TAG_HTTP);
@ -1138,8 +1138,8 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
SharedHandle<OptionHandler> op(new BooleanOptionHandler SharedHandle<OptionHandler> op(new BooleanOptionHandler
(PREF_SHOW_FILES, (PREF_SHOW_FILES,
TEXT_SHOW_FILES, TEXT_SHOW_FILES,
A2_V_FALSE, // TODO ommit? A2_V_FALSE,
OptionHandler::NO_ARG, OptionHandler::OPT_ARG,
'S')); 'S'));
op->addTag(TAG_BASIC); op->addTag(TAG_BASIC);
op->addTag(TAG_BITTORRENT); op->addTag(TAG_BITTORRENT);

View File

@ -42,7 +42,7 @@
_(" -l, --log=LOG The file name of the log file. If '-' is\n" \ _(" -l, --log=LOG The file name of the log file. If '-' is\n" \
" specified, log is written to stdout.") " specified, log is written to stdout.")
#define TEXT_DAEMON \ #define TEXT_DAEMON \
_(" -D, --daemon Run as daemon. The current working directory will\n" \ _(" -D, --daemon[=true|false] Run as daemon. The current working directory will\n" \
" be changed to \"/\" and standard input, standard\n" \ " be changed to \"/\" and standard input, standard\n" \
" output and standard error will be redirected to\n" \ " output and standard error will be redirected to\n" \
" \"/dev/null\".") " \"/dev/null\".")
@ -199,7 +199,7 @@
" checksum while downloading a file if chunk\n" \ " checksum while downloading a file if chunk\n" \
" checksums are provided.") " checksums are provided.")
#define TEXT_CONTINUE \ #define TEXT_CONTINUE \
_(" -c, --continue Continue downloading a partially downloaded\n" \ _(" -c, --continue[=true|false] Continue downloading a partially downloaded\n" \
" file. Use this option to resume a download\n" \ " file. Use this option to resume a download\n" \
" started by a web browser or another program\n" \ " started by a web browser or another program\n" \
" which downloads files sequentially from the\n" \ " which downloads files sequentially from the\n" \
@ -208,7 +208,7 @@
#define TEXT_USER_AGENT \ #define TEXT_USER_AGENT \
_(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.") _(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.")
#define TEXT_NO_NETRC \ #define TEXT_NO_NETRC \
_(" -n, --no-netrc Disables netrc support.") _(" -n, --no-netrc[=true|false] Disables netrc support.")
#define TEXT_INPUT_FILE \ #define TEXT_INPUT_FILE \
_(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n" \ _(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n" \
" multiple URIs for a single entity: separate\n" \ " multiple URIs for a single entity: separate\n" \
@ -231,7 +231,7 @@
" overwritten. Session Cookies are also saved and\n" \ " overwritten. Session Cookies are also saved and\n" \
" their expiry values are treated as 0.") " their expiry values are treated as 0.")
#define TEXT_SHOW_FILES \ #define TEXT_SHOW_FILES \
_(" -S, --show-files Print file listing of .torrent or .metalink file\n" \ _(" -S, --show-files[=true|false] Print file listing of .torrent or .metalink file\n" \
" and exit. More detailed information will be listed\n" \ " and exit. More detailed information will be listed\n" \
" in case of torrent file.") " in case of torrent file.")
#define TEXT_SELECT_FILE \ #define TEXT_SELECT_FILE \
@ -388,7 +388,7 @@
" \"#http\". If non-tag word is given, print the usage\n" \ " \"#http\". If non-tag word is given, print the usage\n" \
" for the options whose name includes that word.") " for the options whose name includes that word.")
#define TEXT_NO_CONF \ #define TEXT_NO_CONF \
_(" --no-conf Disable loading aria2.conf file.") _(" --no-conf[=true|false] Disable loading aria2.conf file.")
#define TEXT_CONF_PATH \ #define TEXT_CONF_PATH \
_(" --conf-path=PATH Change the configuration file path to PATH.") _(" --conf-path=PATH Change the configuration file path to PATH.")
#define TEXT_STOP \ #define TEXT_STOP \