Skip to content

Commit

Permalink
Merge pull request #4177 from jimingham/type-it-right
Browse files Browse the repository at this point in the history
Fix a mistyping introduced with the new container command.
  • Loading branch information
JDevlieghere committed Sep 8, 2022
2 parents b1724cf + fc5e3b8 commit 820bd00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lldb/source/Interpreter/CommandInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ void CommandInterpreter::GetHelp(CommandReturnObject &result,
result.AppendMessage("Current user-defined container commands:");
result.AppendMessage("");
max_len = FindLongestCommandWord(m_user_mw_dict);
for (pos = m_user_dict.begin(); pos != m_user_mw_dict.end(); ++pos) {
for (pos = m_user_mw_dict.begin(); pos != m_user_mw_dict.end(); ++pos) {
OutputFormattedHelpText(result.GetOutputStream(), pos->first, "--",
pos->second->GetHelp(), max_len);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def container_add(self):
self.expect("test-multi test-multi-sub welcome friend", "Used the new command class",
substrs=["Hello friend, welcome again to LLDB"])
self.expect("apropos welcome", "welcome should show up in apropos", substrs=["a docstring for the second Welcome"])

self.expect("help test-multi test-multi-sub welcome", "welcome should show up in help", substrs=["a docstring for the second Welcome"])
self.expect("help", "test-multi should show up in help", substrs=["test-multi"])

# Now switch the default and make sure we can now delete w/o the overwrite option:
self.runCmd("settings set interpreter.require-overwrite 0")
self.runCmd("command script add -c welcome.WelcomeCommand test-multi test-multi-sub welcome")
Expand Down

0 comments on commit 820bd00

Please sign in to comment.