From cfdabdb66f4238b454eccdf4839fa3009bd7b272 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 22 Apr 2020 10:53:41 +0200 Subject: C++ Demo: Fix help option --- examples/pugl_cxx_demo.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/pugl_cxx_demo.cpp') 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}; -- cgit v1.2.1