def _info_tools(): """Print info about command line tools.""" print('\n*** ctapipe tools ***\n') print('the following can be executed by typing ctapipe-<toolname>:') print('') # TODO: how to get a one-line description or # full help text from the docstring or ArgumentParser? # This is the function names, we want the command-line names # that are defined in setup.py !??? from ctapipe.tools.utils import get_all_descriptions from textwrap import TextWrapper wrapper = TextWrapper(width=80, subsequent_indent=" " * 35) scripts = get_all_descriptions() for name, desc in sorted(scripts.items()): text = "{:<30s} - {}".format(name, desc) print(wrapper.fill(text)) print('') print('')
def _info_tools(): """Print info about command line tools.""" print('\n*** ctapipe tools ***\n') print('the following can be executed by typing ctapipe-<toolname>:') print('') # TODO: how to get a one-line description or # full help text from the docstring or ArgumentParser? # This is the function names, we want the command-line names # that are defined in setup.py !??? from ctapipe.tools.utils import get_all_descriptions from textwrap import TextWrapper wrapper = TextWrapper(width=80, subsequent_indent=" " * 35) scripts = get_all_descriptions() for name, desc in sorted(scripts.items()): text = "{:<30s} - {}".format(name, desc) print(wrapper.fill(text)) print('') print('')