aboutsummaryrefslogtreecommitdiffstats
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
parent69366ae5c185b6604aed8fd0dc81ed84d342fafd (diff)
downloadpugl-cfdabdb66f4238b454eccdf4839fa3009bd7b272.tar.gz
pugl-cfdabdb66f4238b454eccdf4839fa3009bd7b272.tar.bz2
pugl-cfdabdb66f4238b454eccdf4839fa3009bd7b272.zip
C++ Demo: Fix help option
-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};