summaryrefslogtreecommitdiff
path: root/src/configure.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure.cc')
-rw-r--r--src/configure.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/configure.cc b/src/configure.cc
index 3bb2d48..a2bb8bc 100644
--- a/src/configure.cc
+++ b/src/configure.cc
@@ -234,6 +234,7 @@ std::ostream& operator<<(std::ostream& ostr, const ctor::asm_flag& flag)
template<class> inline constexpr bool always_false_v = false;
int regenerateCache(ctor::settings& settings,
+ const std::string& name,
const std::vector<std::string>& args,
const std::map<std::string, std::string>& env)
{
@@ -388,7 +389,9 @@ int regenerateCache(ctor::settings& settings,
opt.add("help", no_argument, 'h',
"Print this help text.",
[&]() {
- std::cout << "configure usage stuff\n";
+ std::cout << "Configure how to build with " << name << "\n";
+ std::cout << "Usage: " << name << " configure [options]\n\n";
+ std::cout << "Options:\n";
opt.help();
exit(0);
return 0;
@@ -646,7 +649,7 @@ int configure(const ctor::settings& global_settings, int argc, char* argv[])
env["LD"] = ld_env;
}
- auto ret = regenerateCache(settings, args, env);
+ auto ret = regenerateCache(settings, argv[0], args, env);
if(ret != 0)
{
return ret;
@@ -688,7 +691,7 @@ int reconfigure(const ctor::settings& global_settings, int argc, char* argv[])
}
std::cout << "\n";
- auto ret = regenerateCache(settings, cfg.args, cfg.env);
+ auto ret = regenerateCache(settings, argv[0], cfg.args, cfg.env);
if(ret != 0)
{
return ret;