aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-22 10:53:41 +0200
committerDavid Robillard <d@drobilla.net>2020-04-22 10:53:41 +0200
commitcfdabdb66f4238b454eccdf4839fa3009bd7b272 (patch)
tree44f49ac8a14a87ed67eaf2128feea87f2794d126 /examples
parent69366ae5c185b6604aed8fd0dc81ed84d342fafd (diff)
C++ Demo: Fix help option
Diffstat (limited to 'examples')
-rw-r--r--examples/pugl_cxx_demo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/pugl_cxx_demo.cpp b/examples/pugl_cxx_demo.cpp
index 8a2dc31..7b51e7e 100644
--- a/examples/pugl_cxx_demo.cpp
+++ b/examples/pugl_cxx_demo.cpp
@@ -109,6 +109,10 @@ int
main(int argc, char** argv)
{
const PuglTestOptions opts = puglParseTestOptions(&argc, &argv);
+ if (opts.help) {
+ puglPrintTestUsage("pugl_cxx_demo", "");
+ return 1;
+ }
pugl::World world{pugl::WorldType::program};
CubeView view{world};