diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-03-24 10:13:23 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-03-24 10:13:23 -0600 |
commit | d5c42c4951261c401c5f9148ce2d6bb1402ce75b (patch) | |
tree | 1ff58058d0810f2f82ecc8f3882b9f68f8748409 /simple_pose_test.c | |
parent | b45e58d9f75747e8727ac6cd0594a921e945c7e2 (diff) | |
download | libsurvive-d5c42c4951261c401c5f9148ce2d6bb1402ce75b.tar.gz libsurvive-d5c42c4951261c401c5f9148ce2d6bb1402ce75b.tar.bz2 |
Some minor fixups around command line processing
Diffstat (limited to 'simple_pose_test.c')
-rw-r--r-- | simple_pose_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/simple_pose_test.c b/simple_pose_test.c index 34c15de..0772abb 100644 --- a/simple_pose_test.c +++ b/simple_pose_test.c @@ -158,6 +158,9 @@ int main( int argc, char ** argv ) double Start = OGGetAbsoluteTime(); ctx = survive_init( argc, argv ); + if (ctx == 0) { // Implies --help or similiar + return -1; + } //survive_install_button_fn(ctx, testprog_button_process); survive_install_raw_pose_fn(ctx, testprog_raw_pose_process); |