소스 검색

Disallowed checksum, index-out, out, pause and select-file option in
aria2.changeGlobalOption.

Tatsuhiro Tsujikawa 14 년 전
부모
커밋
dfd214b3db
2개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. 8 1
      doc/aria2c.1.asciidoc
  2. 0 5
      src/OptionHandlerFactory.cc

+ 8 - 1
doc/aria2c.1.asciidoc

@@ -2850,7 +2850,14 @@ Description
 
 
 This method changes global options dynamically.  'options' is of type
 This method changes global options dynamically.  'options' is of type
 struct and the available options are ones listed in
 struct and the available options are ones listed in
-*<<_input_file, Input File>>* subsection and following options:
+*<<_input_file, Input File>>* subsection
+(except for following 5 options:
+*<<aria2_optref_checksum, checksum>>*,
+*<<aria2_optref_index_out, index-out>>*,
+*<<aria2_optref_out, out>>*,
+*<<aria2_optref_pause, pause>>*,
+*<<aria2_optref_select_file, select-file>>*
+). In addition to them, following options are also available:
 
 
 * *<<aria2_optref_download_result, download-result>>*
 * *<<aria2_optref_download_result, download-result>>*
 * *<<aria2_optref_log, log>>*
 * *<<aria2_optref_log, log>>*

+ 0 - 5
src/OptionHandlerFactory.cc

@@ -582,7 +582,6 @@ OptionHandlerFactory::createOptionHandlers()
     op->addTag(TAG_ADVANCED);
     op->addTag(TAG_ADVANCED);
     op->addTag(TAG_RPC);
     op->addTag(TAG_RPC);
     op->setInitialOption(true);
     op->setInitialOption(true);
-    op->setChangeGlobalOption(true);
     handlers.push_back(op);
     handlers.push_back(op);
   }
   }
   {
   {
@@ -735,7 +734,6 @@ OptionHandlerFactory::createOptionHandlers()
     op->addTag(TAG_HTTP);
     op->addTag(TAG_HTTP);
     op->addTag(TAG_CHECKSUM);
     op->addTag(TAG_CHECKSUM);
     op->setInitialOption(true);
     op->setInitialOption(true);
-    op->setChangeGlobalOption(true);
     handlers.push_back(op);
     handlers.push_back(op);
   }
   }
 #endif // ENABLE_MESSAGE_DIGEST
 #endif // ENABLE_MESSAGE_DIGEST
@@ -826,7 +824,6 @@ OptionHandlerFactory::createOptionHandlers()
     op->addTag(TAG_HTTP);
     op->addTag(TAG_HTTP);
     op->addTag(TAG_FILE);
     op->addTag(TAG_FILE);
     op->setInitialOption(true);
     op->setInitialOption(true);
-    op->setChangeGlobalOption(true);
     handlers.push_back(op);
     handlers.push_back(op);
   }
   }
   {
   {
@@ -1418,7 +1415,6 @@ OptionHandlerFactory::createOptionHandlers()
     op->addTag(TAG_BITTORRENT);
     op->addTag(TAG_BITTORRENT);
     op->addTag(TAG_METALINK);
     op->addTag(TAG_METALINK);
     op->setInitialOption(true);
     op->setInitialOption(true);
-    op->setChangeGlobalOption(true);
     handlers.push_back(op);
     handlers.push_back(op);
   }
   }
   {
   {
@@ -1800,7 +1796,6 @@ OptionHandlerFactory::createOptionHandlers()
     op->addTag(TAG_BITTORRENT);
     op->addTag(TAG_BITTORRENT);
     op->setInitialOption(true);
     op->setInitialOption(true);
     op->setCumulative(true);
     op->setCumulative(true);
-    op->setChangeGlobalOption(true);
     handlers.push_back(op);
     handlers.push_back(op);
   }
   }
   {
   {