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)
Methods Summary
add_argument
(action)add_arguments
(actions)add_text
(text)add_usage
(usage, actions, groups[, prefix])end_section
()format_help
()start_section
(heading)Methods Documentation
-
add_argument
(action)¶
-
add_arguments
(actions)¶
-
add_text
(text)¶
-
add_usage
(usage, actions, groups, prefix=None)¶
-
end_section
()¶
-
format_help
()¶
-
start_section
(heading)¶
-