Skip to content

FAQ

Does argparse-c exit on parse errors?

No. Parse APIs return 0 on success and -1 on failure, and the details are written into ap_error.

How do I print help?

-h/--help is added automatically. If you want the formatted help text, call ap_format_help(...).

How can I check at runtime whether completion is enabled?

Call ap_parser_completion_enabled(parser) after ap_parser_set_completion(...) to verify the current parser state.

How is dest chosen?

  • optional arguments prefer the first long flag
  • if there is no long flag, the first short flag is used
  • positionals use the declared name
  • during auto-generation, - is normalized to _

Where is the full API reference?

What is the current security validation statement?

What is out of guarantee scope?

  • Input/output validation in applications using argparse-c is the responsibility of each application.
  • Behavioral/security impact from environment differences (OS, toolchain, dependency versions) is outside the library's full guarantee scope.

How often is this statement updated?

  • The wording is reviewed and updated at each release, based on current CI evidence and the security-test procedure.