From d27abad4ffe5452b1c046b6cc956574e979f2cab Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sun, 16 Aug 2020 13:14:34 -0700 Subject: [PATCH] rename parse_args.py to args.py to make room for more args functions --- jrnl/{parse_args.py => args.py} | 2 ++ jrnl/cli.py | 2 +- tests/test_parse_args.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) rename jrnl/{parse_args.py => args.py} (99%) diff --git a/jrnl/parse_args.py b/jrnl/args.py similarity index 99% rename from jrnl/parse_args.py rename to jrnl/args.py index f5043f8f..828f612c 100644 --- a/jrnl/parse_args.py +++ b/jrnl/args.py @@ -15,6 +15,8 @@ from .plugins import util class WrappingFormatter(argparse.RawTextHelpFormatter): + """Used in help screen""" + def _split_lines(self, text, width): text = text.split("\n\n") text = map(lambda t: self._whitespace_matcher.sub(" ", t).strip(), text) diff --git a/jrnl/cli.py b/jrnl/cli.py index bb8eba24..2f2b6564 100644 --- a/jrnl/cli.py +++ b/jrnl/cli.py @@ -20,7 +20,7 @@ import logging import sys from .jrnl import run -from .parse_args import parse_args +from .args import parse_args def configure_logger(debug=False): diff --git a/tests/test_parse_args.py b/tests/test_parse_args.py index 431892e6..6f6a02db 100644 --- a/tests/test_parse_args.py +++ b/tests/test_parse_args.py @@ -2,7 +2,7 @@ import shlex import pytest -from jrnl.parse_args import parse_args +from jrnl.args import parse_args def cli_as_dict(str):