From: Mikko Rasa Date: Fri, 17 Nov 2006 23:16:21 +0000 (+0000) Subject: Compatibility with previous change in mspcore X-Git-Tag: 0.9~43 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9f98162ae757fc7eae55a2abba4c89fbf4c8fad7;p=builder.git Compatibility with previous change in mspcore --- diff --git a/source/builder.cpp b/source/builder.cpp index 3d8579c..8ac06f6 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -271,7 +271,7 @@ int Builder::main() if(help) { - usage("builder", false); + usage(0, "builder", false); cout<<'\n'; package_help(); return 0; @@ -344,10 +344,13 @@ Builder::~Builder() delete analyzer; } -void Builder::usage(const char *argv0, bool brief) +void Builder::usage(const char *reason, const char *argv0, bool brief) { + if(reason) + cerr< ...]"; + cerr<<"Usage: "< ...]"; else { cerr<< diff --git a/source/builder.h b/source/builder.h index 00bb2ad..074b6d1 100644 --- a/source/builder.h +++ b/source/builder.h @@ -32,7 +32,7 @@ public: int main(); ~Builder(); - static void usage(const char *, bool); + static void usage(const char *, const char *, bool); private: class Loader: public Msp::Parser::Loader {