From 9f98162ae757fc7eae55a2abba4c89fbf4c8fad7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 17 Nov 2006 23:16:21 +0000 Subject: [PATCH] Compatibility with previous change in mspcore --- source/builder.cpp | 9 ++++++--- source/builder.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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 { -- 2.45.2