Skip to content

Commit 712d55d

Browse files
committed
Renamed a parser builder function to reflect name of the command.
1 parent 9edd091 commit 712d55d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cmd2/cmd2.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5172,27 +5172,27 @@ def do_run_script(self, args: argparse.Namespace) -> bool | None:
51725172
self._script_dir.pop()
51735173

51745174
@classmethod
5175-
def _build_relative_run_script_parser(cls) -> Cmd2ArgumentParser:
5176-
relative_run_script_parser = cls._build_base_run_script_parser()
5175+
def _build__relative_run_script_parser(cls) -> Cmd2ArgumentParser:
5176+
_relative_run_script_parser = cls._build_base_run_script_parser()
51775177

51785178
# Append to existing description
5179-
relative_run_script_parser.description = Group(
5180-
cast(Group, relative_run_script_parser.description),
5179+
_relative_run_script_parser.description = Group(
5180+
cast(Group, _relative_run_script_parser.description),
51815181
"\n",
51825182
(
51835183
"If this is called from within an already-running script, the filename will be "
51845184
"interpreted relative to the already-running script's directory."
51855185
),
51865186
)
51875187

5188-
relative_run_script_parser.epilog = relative_run_script_parser.create_text_group(
5188+
_relative_run_script_parser.epilog = _relative_run_script_parser.create_text_group(
51895189
"Note",
51905190
"This command is intended to be used from within a text script.",
51915191
)
51925192

5193-
return relative_run_script_parser
5193+
return _relative_run_script_parser
51945194

5195-
@with_argparser(_build_relative_run_script_parser)
5195+
@with_argparser(_build__relative_run_script_parser)
51965196
def do__relative_run_script(self, args: argparse.Namespace) -> bool | None:
51975197
"""Run text script.
51985198

0 commit comments

Comments
 (0)