faq.rst 611 B

123456789101112131415161718192021
  1. .. _faq:
  2. Frequenty Asked Questions
  3. =========================
  4. How do I Manually Print the Help Text for My Application
  5. --------------------------------------------------------
  6. The common question is how to print the help text that you see when you pass
  7. ``--help`` to your application, but manually from within your code. This is
  8. a feature of ArgParse and is as simple as calling:
  9. .. code-block:: python
  10. app.args.print_help()
  11. Note that, this obviously will not work if using a different argument handler
  12. that implements the ``IArgument`` interface rather than the default
  13. ``ArgparseArgumentHandler``.