Skip to content

Commit 38804d7

Browse files
committed
Updated a comment and moved an import
1 parent 3d52ee7 commit 38804d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
from . import utils
4848
from .argparse_completer import AutoCompleter, ACArgumentParser, ACTION_ARG_CHOICES
4949
from .clipboard import can_clip, get_paste_buffer, write_to_paste_buffer
50-
from .parsing import StatementParser, Statement, Macro, MacroArg, shlex_split, get_command_arg_list
5150
from .history import History, HistoryItem
51+
from .parsing import StatementParser, Statement, Macro, MacroArg, shlex_split, get_command_arg_list
5252

5353
# Set up readline
5454
from .rl_utils import rl_type, RlType, rl_get_point, rl_set_prompt, vt100_support, rl_make_safe_prompt

cmd2/parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def get_command_arg_list(to_parse: Union[Statement, str], preserve_quotes: bool)
256256
else:
257257
return to_parse.argv[1:]
258258
else:
259-
# We only have the argument string. Use the parser to split this string.
259+
# We have the arguments in a string. Use shlex to split it.
260260
parsed_arglist = shlex_split(to_parse)
261261
if not preserve_quotes:
262262
parsed_arglist = [utils.strip_quotes(arg) for arg in parsed_arglist]

0 commit comments

Comments
 (0)