aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectHelp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectHelp.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectHelp.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/lldb/source/Commands/CommandObjectHelp.cpp b/lldb/source/Commands/CommandObjectHelp.cpp
index ddb006e..f1dbd03 100644
--- a/lldb/source/Commands/CommandObjectHelp.cpp
+++ b/lldb/source/Commands/CommandObjectHelp.cpp
@@ -48,20 +48,9 @@ CommandObjectHelp::CommandObjectHelp(CommandInterpreter &interpreter)
"commands, or give details "
"about a specific command.",
"help [<cmd-name>]") {
- CommandArgumentEntry arg;
- CommandArgumentData command_arg;
-
// A list of command names forming a path to the command we want help on.
// No names is allowed - in which case we dump the top-level help.
- command_arg.arg_type = eArgTypeCommand;
- command_arg.arg_repetition = eArgRepeatStar;
-
- // There is only one variant this argument could be; put it into the argument
- // entry.
- arg.push_back(command_arg);
-
- // Push the data for the first argument into the m_arguments vector.
- m_arguments.push_back(arg);
+ AddSimpleArgumentList(eArgTypeCommand, eArgRepeatStar);
}
CommandObjectHelp::~CommandObjectHelp() = default;