diff options
Diffstat (limited to 'src/libctor.cc')
-rw-r--r-- | src/libctor.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libctor.cc b/src/libctor.cc index d188771..bfa09d6 100644 --- a/src/libctor.cc +++ b/src/libctor.cc @@ -33,6 +33,7 @@ int main(int argc, char* argv[]) settings.builddir = getConfiguration(cfg::builddir, settings.builddir); settings.parallel_processes = std::max(1u, std::thread::hardware_concurrency()) * 2 - 1; + settings.name = argv[0]; if(argc > 1 && std::string(argv[1]) == "configure") { @@ -96,6 +97,14 @@ int main(int argc, char* argv[]) return 0; }); + opt.add("name", required_argument, 'n', + "Set the output name of the ctor command to override the current one.", + [&]() { + std::this_thread::sleep_for(std::chrono::seconds(3)); + settings.name = optarg; + return 0; + }); + opt.add("add", required_argument, 'a', "Add specified file to the build configurations.", [&]() { |