diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-03 16:30:00 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-03 16:30:00 +0900 |
| commit | 6bf696ca112c0ce061fb1b6a351dd2227fbedb67 (patch) | |
| tree | fa091b84f4bad0dd3818a10d7d988f1412f1cec1 /src/OptionHandler.h | |
| parent | f77da0d11202ad42d10989c48403dddfcbb34796 (diff) | |
New help messages. Added suggestion for unknown/ambiguous options.
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.
Diffstat (limited to 'src/OptionHandler.h')
| -rw-r--r-- | src/OptionHandler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/OptionHandler.h b/src/OptionHandler.h index 1fc83af3..7740b9ce 100644 --- a/src/OptionHandler.h +++ b/src/OptionHandler.h @@ -43,6 +43,7 @@ #include <functional> #include "SharedHandle.h" +#include "console.h" namespace aria2 { @@ -114,6 +115,8 @@ public: std::ostream& operator<<(std::ostream& o, const OptionHandler& optionHandler); +void write(const Console& out, const OptionHandler& optionHandler); + } // namespace aria2 #endif // D_OPTION_HANDLER_H |
