From 8b2e01d5404649e8f94c81ca3b5fa05fe8962220 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 5 Feb 2020 13:50:12 -0800 Subject: [PATCH] doc update --- jc/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index 67368eae..df99404f 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -51,22 +51,22 @@ parsers = [ def parser_shortname(parser_argument): - # short name of the parser with dashes and no -- prefix + """short name of the parser with dashes and no -- prefix""" return parser_argument[2:] def parser_argument(parser): - # short name of the parser with dashes and with -- prefix + """short name of the parser with dashes and with -- prefix""" return f'--{parser}' def parser_mod_shortname(parser): - # short name of the parser's module name (no -- prefix and dashes converted to underscores) + """short name of the parser's module name (no -- prefix and dashes converted to underscores)""" return parser.replace('--', '').replace('-', '_') def parser_module(parser): - # import the module just in time and present the module object + """import the module just in time and present the module object""" importlib.import_module('jc.parsers.' + parser_mod_shortname(parser)) return getattr(jc.parsers, parser_mod_shortname(parser))