class Analyzer;
+/**
+Provides a command-line interface for Builder.
+*/
class BuilderCLI: public Msp::RegisteredApplication<BuilderCLI>
{
private:
- typedef std::list<std::string> NameList;
-
- NameList cmdline_targets;
+ std::list<std::string> cmdline_targets;
Config::InputOptions cmdline_options;
Msp::FS::Path cwd;
bool show_progress;
std::string build_file;
unsigned jobs;
- NameList what_if;
+ std::list<std::string> what_if;
bool conf_all;
bool conf_only;
bool build_all;
BuilderCLI(int, char **);
~BuilderCLI();
- virtual int main();
+ int main() override;
private:
bool prepare_build();
+ Target *resolve_target(const std::string &);
void package_help();
};