diff options
author | David Robillard <d@drobilla.net> | 2020-04-22 10:53:41 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-22 10:53:41 +0200 |
commit | cfdabdb66f4238b454eccdf4839fa3009bd7b272 (patch) | |
tree | 44f49ac8a14a87ed67eaf2128feea87f2794d126 /examples | |
parent | 69366ae5c185b6604aed8fd0dc81ed84d342fafd (diff) | |
download | pugl-cfdabdb66f4238b454eccdf4839fa3009bd7b272.tar.gz pugl-cfdabdb66f4238b454eccdf4839fa3009bd7b272.tar.bz2 pugl-cfdabdb66f4238b454eccdf4839fa3009bd7b272.zip |
C++ Demo: Fix help option
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pugl_cxx_demo.cpp | 4 |
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}; |