mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Print tags, possible values when OptionHandlerException is caught. * src/option_processing.cc
This commit is contained in:
parent
d71f434f61
commit
9dd04b7aaa
@ -1,3 +1,8 @@
|
||||
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Print tags, possible values when OptionHandlerException is caught.
|
||||
* src/option_processing.cc
|
||||
|
||||
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Changed the message for FatalException.
|
||||
|
@ -164,7 +164,7 @@ void option_processing(Option& op, std::deque<std::string>& uris,
|
||||
} catch(OptionHandlerException& e) {
|
||||
std::cerr << e.stackTrace() << "\n"
|
||||
<< "Usage:" << "\n"
|
||||
<< oparser.findByName(e.getOptionName())->getDescription()
|
||||
<< oparser.findByName(e.getOptionName())
|
||||
<< std::endl;
|
||||
exit(DownloadResult::UNKNOWN_ERROR);
|
||||
} catch(Exception& e) {
|
||||
|
Loading…
Reference in New Issue
Block a user