aboutsummaryrefslogtreecommitdiff
path: root/bpkg/bpkg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/bpkg.cxx')
-rw-r--r--bpkg/bpkg.cxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx
index 6e35544..3492705 100644
--- a/bpkg/bpkg.cxx
+++ b/bpkg/bpkg.cxx
@@ -5,9 +5,31 @@
#include <iostream>
#include <exception>
+#include <bpkg/diagnostics>
+
using namespace std;
+using namespace bpkg;
int
main ()
{
+ tracer trace ("main");
+
+ try
+ {
+ // Trace verbosity.
+ //
+ verb = 0;
+ }
+ catch (const failed&)
+ {
+ return 1; // Diagnostics has already been issued.
+ }
+ /*
+ catch (const std::exception& e)
+ {
+ error << e.what ();
+ return 1;
+ }
+ */
}