feat: adopt VoidLibrary VL-001..VL-013, self-building build.cpp, live logs, and generated CLI help
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 10s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 10s
This commit is contained in:
1 parent
ab64147f9d
commit
363fb8200e
33 files changed
+1754
-3155
No files matched your search
+7
-12
@@ -12,22 +12,17 @@ int main(int argc, char **argv) {
|
||||
"Evaluate the compiled example description; no target compiler is invoked."};
|
||||
parser.option_default("--profile", "", "profile: debug or release", profile, "debug")
|
||||
.option_default("--compiler", "", "target compiler context: gcc or clang", compiler, "gcc");
|
||||
if (argc == 2 && (std::string_view{argv[1]} == "--help" || std::string_view{argv[1]} == "-h")) {
|
||||
std::cout << parser.help();
|
||||
|
||||
const auto parsed = parser.parse_detailed(argc, argv);
|
||||
if (parsed.is_help()) {
|
||||
std::cout << parsed.message;
|
||||
return 0;
|
||||
}
|
||||
// Help is deliberately successful only as a standalone request.
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
if (std::string_view{argv[i]} == "--help" || std::string_view{argv[i]} == "-h") {
|
||||
std::cerr << "vbs_describe: --help must be used alone\n";
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
const auto parsed = parser.parse(argc, argv);
|
||||
if (!parsed) {
|
||||
std::cerr << "vbs_describe: " << parsed.error() << '\n';
|
||||
if (parsed.is_error()) {
|
||||
std::cerr << "vbs_describe: " << parsed.message << '\n';
|
||||
return 2;
|
||||
}
|
||||
|
||||
try {
|
||||
Void::Build::Profiles descriptions;
|
||||
profiles(descriptions);
|
||||
|
||||
Reference in new issue
Block a user