]> git.tdb.fi Git - builder.git/commitdiff
Compatibility with previous change in mspcore
authorMikko Rasa <tdb@tdb.fi>
Fri, 17 Nov 2006 23:16:21 +0000 (23:16 +0000)
committerMikko Rasa <tdb@tdb.fi>
Fri, 17 Nov 2006 23:16:21 +0000 (23:16 +0000)
source/builder.cpp
source/builder.h

index 3d8579c9eb34b57cff2c57800c5b1b84c72b3570..8ac06f6b6133caf82924a03ccb5f69256661297a 100644 (file)
@@ -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<<reason<<'\n';
+       
        if(brief)
-               cerr<<"Usage: "<<argv0<<" [-a|--analyze MODE] [-b|--build] [-c|--clean] [-f|--file FILE] [-h|--help] [-j|--jobs NUM] [-n||--dry-run] [-v|--verbose] [-A|--conf-all] [-B|--build-all] [-C|--chdir DIRECTORY] [-W|--what-if FILE] [--chrome] [--full-paths] [--max-depth NUM] [<target> ...]";
+               cerr<<"Usage: "<<argv0<<" [-a|--analyze MODE] [-b|--build] [-c|--clean] [-f|--file FILE] [-h|--help] [-j|--jobs NUM] [-n||--dry-run] [-v|--verbose] [-A|--conf-all] [-B|--build-all] [-C|--chdir DIRECTORY] [-W|--what-if FILE] [--chrome] [--conf-only] [--full-paths] [--max-depth NUM] [<target> ...]";
        else
        {
                cerr<<
index 00bb2ad91b5ada766369243d5d1777965918ac84..074b6d14536d2bef723ec4d4ea8e6e9d7540ddcc 100644 (file)
@@ -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
        {