X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuildercli.h;h=efc2cc9bdc5431d4541ac2903d1d79a7c0c5835c;hb=c75c89d2425ab0c69e94d45a5d956286838bbc67;hp=ac8875231ff27ddba88fa6844edc33a31c67c115;hpb=1dad660f7bbda5ef3239fd6374e0f8a77e19eaaa;p=builder.git diff --git a/source/buildercli.h b/source/buildercli.h index ac88752..efc2cc9 100644 --- a/source/buildercli.h +++ b/source/buildercli.h @@ -6,6 +6,9 @@ class Analyzer; +/** +Provides a command-line interface for Builder. +*/ class BuilderCLI: public Msp::RegisteredApplication { private: @@ -22,6 +25,7 @@ private: unsigned clean; bool dry_run; bool help; + std::string helpmsg; bool show_progress; std::string build_file; unsigned jobs; @@ -31,18 +35,16 @@ private: bool build_all; bool create_makefile; - static std::string usagemsg; - static std::string helpmsg; - public: BuilderCLI(int, char **); ~BuilderCLI(); virtual int main(); +private: bool prepare_build(); + Target *resolve_target(const std::string &); - static void usage(const char *, const char *, bool); void package_help(); };