rename parse_args.py to args.py to make room for more args functions

This commit is contained in:
Jonathan Wren 2020-08-16 13:14:34 -07:00
parent 54bcfddd3c
commit d27abad4ff
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
3 changed files with 4 additions and 2 deletions

View file

@ -15,6 +15,8 @@ from .plugins import util
class WrappingFormatter(argparse.RawTextHelpFormatter): class WrappingFormatter(argparse.RawTextHelpFormatter):
"""Used in help screen"""
def _split_lines(self, text, width): def _split_lines(self, text, width):
text = text.split("\n\n") text = text.split("\n\n")
text = map(lambda t: self._whitespace_matcher.sub(" ", t).strip(), text) text = map(lambda t: self._whitespace_matcher.sub(" ", t).strip(), text)

View file

@ -20,7 +20,7 @@ import logging
import sys import sys
from .jrnl import run from .jrnl import run
from .parse_args import parse_args from .args import parse_args
def configure_logger(debug=False): def configure_logger(debug=False):

View file

@ -2,7 +2,7 @@ import shlex
import pytest import pytest
from jrnl.parse_args import parse_args from jrnl.args import parse_args
def cli_as_dict(str): def cli_as_dict(str):