summaryrefslogtreecommitdiff
path: root/src/option_processing.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix spellinga13460542023-11-051-1/+1
|
* Enable IndentPPDirectivesTatsuhiro Tsujikawa2018-06-091-4/+4
|
* mingw32: Gain privilege before opening filesTatsuhiro Tsujikawa2016-05-181-10/+0
|
* Add --stderr option to redirect all stdout log output to stderrTatsuhiro Tsujikawa2016-04-271-0/+3
|
* mingw: Add warning for fallocTatsuhiro Tsujikawa2016-03-031-0/+11
|
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-82/+82
|
* Disable --deferred-input when --save-session is used togetherTatsuhiro Tsujikawa2015-11-281-0/+6
| | | | | | | | | | | | With --deferred-input=true, aria2 only reads input file to fill active download slots, while keeping input file open. Meanwhile, --save-session saves all download info inside memory, but this does not take into account of unread item in input file. This will lead to lose input data in saved session file. Also current BufferedFile implementation used to read/write input/output file take a lock on Windows. This effectively prevents session serializer from writing session data to the same file which is still kept open because of --deferred-input. See GH-493
* Use std::make_shared and make_unique where possible, part 2Tatsuhiro Tsujikawa2014-09-131-1/+1
|
* Fix test failure with --enable-libaria2release-1.18.6Tatsuhiro Tsujikawa2014-07-141-2/+6
|
* Silence deprecation warning about daemon() on OSXNils Maier2014-05-291-1/+12
|
* Remove nativeToUtf8 and utf8ToNativeTatsuhiro Tsujikawa2013-11-011-18/+0
| | | | | They are now not needed since we use Windows specific command-line argument converter.
* Introduce PrefPtr typedefNils Maier2013-09-191-4/+4
|
* Convert to autos and ranged loopsNils Maier2013-08-211-2/+2
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-5/+5
|
* Fix PREF_QUIET is set to A2_V_TRUE even if standalone is truelibaria2Tatsuhiro Tsujikawa2013-05-051-4/+6
|
* Don't enter daemon mode if standalone is falseTatsuhiro Tsujikawa2013-05-021-1/+1
|
* Don't exit on error in option_processingTatsuhiro Tsujikawa2013-05-021-30/+33
| | | | | Still it exits when -v or -h is given. They are now guarded by standalone variable and only do so when it is true.
* Add getDownloadHandle APITatsuhiro Tsujikawa2013-04-271-0/+4
|
* Add initialization function and addUri API function for libaria2Tatsuhiro Tsujikawa2013-04-261-3/+7
|
* Save options directly specified for download in --save-sessionTatsuhiro Tsujikawa2013-04-111-15/+25
| | | | | | | This change makes --save-session save only options specified for download, more specifically, options in command-line, -i file and via RPC. The other options from conf file and default values are not saved. This will drastically decrease the size of session file.
* Handle OptionHandlers as raw pointerTatsuhiro Tsujikawa2012-09-271-3/+3
|
* Made BufferedFile ctor take const char* argsTatsuhiro Tsujikawa2012-09-251-1/+1
|
* Increased shreshold of command-line option suggestionTatsuhiro Tsujikawa2012-09-231-2/+2
|
* Rewritten help tags and various internal flag handling in OptionHandlerTatsuhiro Tsujikawa2012-09-231-3/+3
| | | | | Now help tags are defined as enum values to avoid vector of strings. The internal flags are represented by bitmask to shrink size.
* Removed static const char[] as much as possible.Tatsuhiro Tsujikawa2012-01-111-3/+1
| | | | | Provided convenient functions for streq, strieq, startsWith, istartsWith, endsWith, iendsWith to support this move.
* Fixed typo and code cleanupTatsuhiro Tsujikawa2011-12-031-7/+7
|
* New help messages. Added suggestion for unknown/ambiguous options.Tatsuhiro Tsujikawa2011-12-031-23/+114
| | | | | | | The help messages shown when argument error were redesigned and less verbose now. When unknown or ambiguous option is given, show suggestions like "Did you mean...". Some constant values related to levenstein distance are borrowed from git help.c.
* Fixed compile error with mingwTatsuhiro Tsujikawa2011-12-011-4/+4
|
* Made const char[] staticTatsuhiro Tsujikawa2011-11-111-1/+1
|
* Made Pref::k_, OptionHandler::getName() and getDescription() const char*.Tatsuhiro Tsujikawa2011-11-111-1/+1
|
* Code cleanup. Avoid std::string temporaries.Tatsuhiro Tsujikawa2011-11-051-2/+2
|
* Removed util::startsWith(a, b)Tatsuhiro Tsujikawa2011-11-041-1/+4
|
* Rewritten OptionParser. Made it simpler and efficient.Tatsuhiro Tsujikawa2011-10-221-19/+18
|
* Rewritten Option. Introduced Pref.Tatsuhiro Tsujikawa2011-10-211-7/+7
| | | | | Now preference key is Pref instead of just string. It has Option ID. Now option lookup and setting takes O(1) using Pref object.
* global cout and cerr is now retrieved using global::cout() and global::cerr()Tatsuhiro Tsujikawa2011-08-101-14/+14
| | | | | This is necessary to avoid global variable initialization order problem.
* Added global::cerr. windows.h now included from common.hTatsuhiro Tsujikawa2011-08-101-19/+22
| | | | | | | We replaced most of std::cerr with global::cerr. windows.h is now included from common.h. Before including it, we define WINVER. We renamed some variable name because some macros in windows.h collide with them.
* Read aria2.conf using BufferedFileTatsuhiro Tsujikawa2011-08-071-3/+9
| | | | Read aria2.conf using BufferedFile. Added BufferedFile::transfer().
* In MinGW32, open file with UNICODE filename and print them in ANSI.Tatsuhiro Tsujikawa2011-08-041-0/+8
|
* Erase user and password specified in command-line from argv.Tatsuhiro Tsujikawa2011-04-221-1/+1
| | | | The user and password is masked with '*'.
* Deprecated --enable-xml-rpc and --xml-rpc-* option. IntroducedTatsuhiro Tsujikawa2011-03-141-1/+1
| | | | | | | --enable-rpc and --rpc-* option instead. --enable-xml-rpc and --xml-rpc-* option can be used but warning message will be shown. The help tag #xml-rpc was replaced with #rpc.
* Renamed classes in abstract layer of RPC service from XmlRpc* to Rpc*.Tatsuhiro Tsujikawa2011-03-141-4/+1
| | | | | Now JSON-RPC is available by default regardless of XML library. XML-RPC becomes available when XML library is available.
* Added more error code values.Tatsuhiro Tsujikawa2010-12-011-8/+11
| | | | | I have not set error code for all exception invocation. In this change, I set error code where error likely occurs.
* Renamed DownloadErrorCode.h as error_code.h. RenamedTatsuhiro Tsujikawa2010-11-281-10/+10
| | | | downloaderrorcode::Value as error_code::Value.
* 2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-201-3/+2
| | | | | | Replaced StringFormat with fmt
* 2010-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-121-1/+1
| | | | | | | | Removed SharedHandle::isNull(). Instead we added operator* and operator unspecified_bool_type. Removed use of WeakHandle and replaced with raw pointer.
* 2010-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To match the behavior of friend operator functions in SharedHandle.h to std::tr1::shared_ptr, we intentionally broke these functions and modified code so that our code does not depend on old behavior. * src/AbstractCommand.cc * src/DHTAbstractNodeLookupTask.h * src/DHTBucket.cc * src/DHTMessageReceiver.cc * src/DHTNodeLookupEntry.cc * src/DHTRoutingTable.cc * src/DefaultBtRequestFactory.cc * src/DefaultPeerStorage.cc * src/DefaultPieceStorage.cc * src/DownloadContext.cc * src/EpollEventPoll.cc * src/Event.h * src/HttpConnection.cc * src/KqueueEventPoll.cc * src/MultiDiskAdaptor.cc * src/PeerAbstractCommand.cc * src/PieceStatMan.cc * src/PollEventPoll.cc * src/PortEventPoll.cc * src/SegmentMan.cc * src/SelectEventPoll.cc * src/SelectEventPoll.h * src/ServerStatMan.cc * src/SharedHandle.h * src/UnknownLengthPieceStorage.cc * src/a2functional.h * src/option_processing.cc * src/version_usage.cc * test/BNodeTest.cc * test/DHTAnnouncePeerMessageTest.cc * test/DHTBucketTest.cc * test/DHTFindNodeMessageTest.cc * test/DHTGetPeersMessageTest.cc * test/DHTIDCloserTest.cc * test/DHTMessageFactoryImplTest.cc * test/DHTPingMessageTest.cc * test/DefaultBtRequestFactoryTest.cc * test/DefaultPeerStorageTest.cc * test/SequentialPickerTest.cc * test/SingletonHolderTest.cc
* 2010-10-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-10-301-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use unnamed namespace instead of static keyword. * src/AbstractCommand.cc * src/AdaptiveURISelector.cc * src/Base64.cc * src/BitfieldMan.cc * src/BtDependency.cc * src/ConsoleStatCalc.cc * src/ContentTypeRequestGroupCriteria.cc * src/CookieStorage.cc * src/DHTMessageFactoryImpl.cc * src/DHTRoutingTableDeserializer.cc * src/DefaultBtAnnounce.cc * src/DefaultBtProgressInfoFile.cc * src/DefaultPeerStorage.cc * src/DefaultPieceStorage.cc * src/DownloadCommand.cc * src/DownloadEngine.cc * src/EpollEventPoll.cc * src/ExpatMetalinkProcessor.cc * src/ExpatXmlRpcRequestProcessor.cc * src/FileEntry.cc * src/HttpRequest.cc * src/HttpRequestCommand.cc * src/HttpResponseCommand.cc * src/KqueueEventPoll.cc * src/LongestSequencePieceSelector.cc * src/MetalinkParserStateV3Impl.cc * src/MetalinkParserStateV4Impl.cc * src/MultiDiskAdaptor.cc * src/MultiUrlRequestInfo.cc * src/OptionParser.cc * src/PeerSessionResource.cc * src/PortEventPoll.cc * src/Request.cc * src/RequestGroupMan.cc * src/SelectEventPoll.cc * src/SessionSerializer.cc * src/SimpleLogFormatter.cc * src/Sqlite3CookieParser.cc * src/TrackerWatcherCommand.cc * src/XML2SAXMetalinkProcessor.cc * src/Xml2XmlRpcRequestProcessor.cc * src/XmlRpcMethod.cc * src/XmlRpcMethodImpl.cc * src/XmlRpcResponse.cc * src/base32.cc * src/bencode2.cc * src/bittorrent_helper.cc * src/download_helper.cc * src/main.cc * src/messageDigest.cc * src/option_processing.cc * src/util.cc * test/AnnounceListTest.cc * test/BtRegistryTest.cc * test/DHTBucketTest.cc * test/DHTRoutingTableTest.cc * test/DefaultBtAnnounceTest.cc * test/FileEntryTest.cc * test/FtpConnectionTest.cc * test/MSEHandshakeTest.cc * test/MagnetTest.cc * test/XmlRpcMethodTest.cc * test/array_funTest.cc
* 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-02-281-1/+1
| | | | | | | Use vector instead of deque for containers which is used for mostly read-only purpose.
* 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-01-091-4/+7
| | | | | | | | | | | Fixed the bug that causes segmentation fault if unknown option is put in aria2.conf file. BUG#2928303 * src/OptionParser.cc * src/OptionParser.h * src/option_processing.cc * test/OptionParserTest.cc
* 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-01-051-50/+50
| | | | | | | | | Untabify. Fixed one line in copyright which is longer than 80 columns. * src * test