Fix help output. Test it.
* include/mailutils/opt.h (MU_PARSEOPT_EXTRA_INFO) (MU_PARSEOPT_EXIT_ERROR): New flags. (struct mu_parseopt) <po_extra_info>: New member. <po_exit_error>: New member. * libmailutils/opt/help.c: Fix help output formatting. Implement support for ARGP_HELP_FMT envvar. * libmailutils/opt/opt.c (add_option_cache): Honor MU_PARSEOPT_IMMEDIATE. (parseopt_init): Initialize each member separately. * libmailutils/tests/parseopt.c: Rewrite envvar handling. * libmailutils/tests/Makefile.am: Add new tests. * libmailutils/tests/testsuite.at (PARSEOPT_DEFAULT): New define. * libmailutils/tests/parseopt00.at: Use PARSEOPT_DEFAULT. * libmailutils/tests/parseopt01.at: Likewise. * libmailutils/tests/parseopt02.at: Likewise. * libmailutils/tests/parseopt03.at: Likewise. * libmailutils/tests/parseopt04.at: Likewise. * libmailutils/tests/parseopt05.at: Likewise. * libmailutils/tests/parseopt06.at: Likewise. * libmailutils/tests/parseopt07.at: Likewise. * libmailutils/tests/parseopt08.at: Likewise. * libmailutils/tests/parseopt09.at: Likewise. * libmailutils/tests/parseopt10.at: Likewise. * libmailutils/tests/parseopt11.at: Likewise. * libmailutils/tests/parseopt12.at: Likewise. * libmailutils/tests/parseopt13.at: Likewise. * libmailutils/tests/parseopt14.at: Likewise. * libmailutils/tests/parseopt15.at: Likewise. * libmailutils/tests/parseopt16.at: Likewise. * libmailutils/tests/parseopt17.at: Likewise. * libmailutils/tests/parseopt18.at: Likewise. * libmailutils/tests/parseopt19.at: Likewise. * libmailutils/tests/parseopt20.at: Likewise. * libmailutils/tests/parseopt21.at: Likewise. * libmailutils/tests/parseopt22.at: Likewise. * libmailutils/tests/parseopt23.at: New test. * libmailutils/tests/parseopt24.at: New test. * libmailutils/tests/parseopt25.at: New test. * libmailutils/tests/parseopt_help00.at: New test. * libmailutils/tests/parseopt_help01.at: New test. * libmailutils/tests/parseopt_help02.at: New test. * libmailutils/tests/parseopt_help03.at: New test. * libmailutils/tests/parseopt_help04.at: New test. * libmailutils/tests/parseopt_help05.at: New test. * libmailutils/tests/parseopt_help06.at: New test. * libmailutils/tests/parseopt_help07.at: New test. * libmailutils/tests/parseopt_help08.at: New test. * libmailutils/tests/parseopt_help09.at: New test. * libmailutils/tests/parseopt_help10.at: New test. * libmailutils/tests/parseopt_help11.at: New test.
Showing
43 changed files
with
1017 additions
and
84 deletions
libmailutils/tests/parseopt23.at
0 → 100644
libmailutils/tests/parseopt25.at
0 → 100644
libmailutils/tests/parseopt_help00.at
0 → 100644
libmailutils/tests/parseopt_help01.at
0 → 100644
libmailutils/tests/parseopt_help02.at
0 → 100644
libmailutils/tests/parseopt_help03.at
0 → 100644
libmailutils/tests/parseopt_help04.at
0 → 100644
libmailutils/tests/parseopt_help05.at
0 → 100644
libmailutils/tests/parseopt_help06.at
0 → 100644
libmailutils/tests/parseopt_help07.at
0 → 100644
libmailutils/tests/parseopt_help08.at
0 → 100644
libmailutils/tests/parseopt_help09.at
0 → 100644
libmailutils/tests/parseopt_help10.at
0 → 100644
libmailutils/tests/parseopt_help11.at
0 → 100644
-
Please register or sign in to post a comment