mirror of https://github.com/aria2/aria2
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that the boolean options that don't take arguments don't work. * src/OptionHandlerImpl.hpull/1/head
parent
a2c3c54386
commit
a8376a5c4b
|
@ -1,3 +1,9 @@
|
||||||
|
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Fixed the bug that the boolean options that don't take arguments
|
||||||
|
don't work.
|
||||||
|
* src/OptionHandlerImpl.h
|
||||||
|
|
||||||
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Fixed broken selected file BitTorrent download.
|
Fixed broken selected file BitTorrent download.
|
||||||
|
|
|
@ -117,7 +117,9 @@ public:
|
||||||
virtual void parseArg(Option& option, const std::string& optarg)
|
virtual void parseArg(Option& option, const std::string& optarg)
|
||||||
{
|
{
|
||||||
if(optarg == "true" ||
|
if(optarg == "true" ||
|
||||||
(_argType == OptionHandler::OPT_ARG && optarg.empty())) {
|
((_argType == OptionHandler::OPT_ARG ||
|
||||||
|
_argType == OptionHandler::NO_ARG)
|
||||||
|
&& optarg.empty())) {
|
||||||
option.put(_optName, V_TRUE);
|
option.put(_optName, V_TRUE);
|
||||||
} else if(optarg == "false") {
|
} else if(optarg == "false") {
|
||||||
option.put(_optName, V_FALSE);
|
option.put(_optName, V_FALSE);
|
||||||
|
|
Loading…
Reference in New Issue