Skip to content

Commit c82aa43

Browse files
committed
Removed outdated comment.
1 parent b907988 commit c82aa43

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3254,13 +3254,12 @@ def default(self, statement: Statement) -> bool | None: # type: ignore[override
32543254
if self.default_to_shell:
32553255
if 'shell' not in self.exclude_from_history:
32563256
self.history.append(statement)
3257-
32583257
return self.do_shell(statement.command_and_args)
3258+
32593259
err_msg = self.default_error.format(statement.command)
32603260
if self.suggest_similar_command and (suggested_command := self._suggest_similar_command(statement.command)):
32613261
err_msg += f"\n{self.default_suggestion_message.format(suggested_command)}"
32623262

3263-
# Set apply_style to False so styles for default_error and default_suggestion_message are not overridden
32643263
self.perror(err_msg, style=None)
32653264
return None
32663265

@@ -4099,8 +4098,6 @@ def do_help(self, args: argparse.Namespace) -> None:
40994098
# If there is no help information then print an error
41004099
else:
41014100
err_msg = self.help_error.format(args.command)
4102-
4103-
# Set apply_style to False so help_error's style is not overridden
41044101
self.perror(err_msg, style=None)
41054102
self.last_result = False
41064103

0 commit comments

Comments
 (0)