summaryrefslogtreecommitdiffhomepage
path: root/cli
diff options
context:
space:
mode:
authorAmlal <amlal@zka.com>2024-09-20 16:03:13 +0200
committerAmlal <amlal@zka.com>2024-09-20 16:03:13 +0200
commitd70fc2f8547b3b5af352ee1d5dab2f5122215215 (patch)
tree5485951e60c94f628811a16697999f049c566e23 /cli
parente59596db6f3e92098fdc0c3715f0a41cd10a0333 (diff)
Add TOML header file, add example TOML file.
Signed-off-by: Amlal <amlal@zka.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/AppMain.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/AppMain.cxx b/cli/AppMain.cxx
index e52daa3..66c7ade 100644
--- a/cli/AppMain.cxx
+++ b/cli/AppMain.cxx
@@ -1,4 +1,4 @@
-#include "IManifestBuilder.hxx"
+#include <Macros.hxx>
#include <JSONManifestBuilder.hxx>
#include <cstdio>
#include <cstddef>
@@ -13,6 +13,7 @@ static IManifestBuilder* cBuilder = new JSONManifestBuilder();
int main(int argc, char** argv)
{
+ LIKELY(cBuilder == nullptr);
cJobIndex = argc - 1;
for (size_t index = 1; index < argc; ++index)
@@ -23,8 +24,6 @@ int main(int argc, char** argv)
index_json == "/Version")
{
std::cout << "Usage: btb <file>\n";
- std::cout << "Filename is: " << argv[0] << "\n";
-
std::cout << "Check for issues at: www.el-mahrouss-logic.com/btb/issues\n";
std::cout << "Brought to you by Amlal El Mahrouss.\n";
@@ -61,7 +60,9 @@ int main(int argc, char** argv)
// wait for completion of all jobs.
while (cJobIndex)
- ;
+ {
+ BTB_UNUSED(0);
+ }
delete cBuilder;