GammapyFormatter

class gammapy.utils.scripts.GammapyFormatter(prog, indent_increment=2, max_help_position=24, width=None)[source]

Bases: argparse.ArgumentDefaultsHelpFormatter, argparse.RawTextHelpFormatter

ArgumentParser formatter_class argument.

Examples

>>> from gammapy.utils.scripts import argparse, GammapyFormatter
>>> parser = argparse.ArgumentParser(description=__doc__,
...                                  formatter_class=GammapyFormatter)