[Plplot-devel] [PATCH] Prevent plsetopt from exiting on -h and -v

2010-03-09 Thread David MacMahon
Changes opt_h and opt_v handlers to prevent -h and -v options from calling exit() if PL_OPTION_QUIET is set. --- src/plargs.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/plargs.c b/src/plargs.c index cbacadf..4b0e405 100644 --- a/src/plargs.c +++ b/src/pla

[Plplot-devel] plsetopt( "-h", NULL ) exits process

2010-03-09 Thread David MacMahon
plsetopt("-h",NULL) exits the process and doesn't even show any help. The -v option does the same thing (i.e. exits the process without any output). I think this could be fixed relatively easily and without any negative impact by changing opt_h and opt_v (in src/ plargs.c) to return 0 (ins

[Plplot-devel] plparseopts return value

2010-03-09 Thread David MacMahon
I think plparseopts returns -1 (i.e. an error) if PL_MODE_SKIP is given and the last argument is unknown (i.e. skipped). If the same command line arguments are reordered such that the last argument is known (i.e. not skipped), plparseopts will return 0 (i.e. no error). I think this can be