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
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
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