From 28ffe3076bb5f23aeaf2624344856dbd02b4c0e8 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 26 Jan 2022 16:34:23 -0800 Subject: [PATCH] formatting --- docs/lib.md | 8 ++++---- jc/lib.py | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/lib.md b/docs/lib.md index 189c1de7..f4bbdcd5 100644 --- a/docs/lib.md +++ b/docs/lib.md @@ -110,8 +110,8 @@ def parser_info(parser_mod_name: str) -> Dict Returns a dictionary that includes the module metadata. -This function will accept module_name, cli-name, and --argument-name -variants of the module name string. +This function will accept **module_name**, **cli-name**, and +**--argument-name** variants of the module name string. @@ -133,6 +133,6 @@ def get_help(parser_mod_name: str) -> None Show help screen for the selected parser. -This function will accept module_name, cli-name, and --argument-name -variants of the module name string. +This function will accept **module_name**, **cli-name**, and +**--argument-name** variants of the module name string. diff --git a/jc/lib.py b/jc/lib.py index bddc63e9..bf0812ba 100644 --- a/jc/lib.py +++ b/jc/lib.py @@ -140,7 +140,6 @@ def _get_parser(parser_mod_name): modpath = 'jcparsers.' if parser_cli_name in local_parsers else 'jc.parsers.' return importlib.import_module(f'{modpath}{parser_mod_name}') - def parse( parser_mod_name: str, data: Union[str, Iterable[str]], @@ -229,8 +228,8 @@ def parser_info(parser_mod_name: str) -> Dict: """ Returns a dictionary that includes the module metadata. - This function will accept module_name, cli-name, and --argument-name - variants of the module name string. + This function will accept **module_name**, **cli-name**, and + **--argument-name** variants of the module name string. """ # ensure parser_mod_name is a true module name and not a cli name parser_mod_name = _cliname_to_modname(parser_mod_name) @@ -262,7 +261,7 @@ def get_help(parser_mod_name: str) -> None: """ Show help screen for the selected parser. - This function will accept module_name, cli-name, and --argument-name - variants of the module name string. + This function will accept **module_name**, **cli-name**, and + **--argument-name** variants of the module name string. """ help(_get_parser(parser_mod_name))