mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
added docstrings
This commit is contained in:
@ -88,6 +88,7 @@ def parser_module(parser):
|
|||||||
|
|
||||||
|
|
||||||
def parsers_text(indent=0, pad=0):
|
def parsers_text(indent=0, pad=0):
|
||||||
|
"""return the argument and description information from each parser"""
|
||||||
ptext = ''
|
ptext = ''
|
||||||
for parser in parsers:
|
for parser in parsers:
|
||||||
parser_arg = parser_argument(parser)
|
parser_arg = parser_argument(parser)
|
||||||
@ -105,6 +106,7 @@ def parsers_text(indent=0, pad=0):
|
|||||||
|
|
||||||
|
|
||||||
def about_jc():
|
def about_jc():
|
||||||
|
"""return jc info and the contents of each parser.info as a dictionary"""
|
||||||
parser_list = []
|
parser_list = []
|
||||||
|
|
||||||
for parser in parsers:
|
for parser in parsers:
|
||||||
@ -134,6 +136,7 @@ def about_jc():
|
|||||||
|
|
||||||
|
|
||||||
def helptext(message):
|
def helptext(message):
|
||||||
|
"""return the help text with the list of parsers"""
|
||||||
parsers_string = parsers_text(indent=12, pad=17)
|
parsers_string = parsers_text(indent=12, pad=17)
|
||||||
|
|
||||||
helptext_string = f'''
|
helptext_string = f'''
|
||||||
|
Reference in New Issue
Block a user