diff options
author | Caroline Tice <ctice@apple.com> | 2010-10-04 22:28:36 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-10-04 22:28:36 +0000 |
commit | 405fe67f1424284173459575b1081f42935c50fd (patch) | |
tree | 5110616e8a6ebcd9138f08209dbacf041b50a37a /lldb/source/Commands/CommandObjectSyntax.cpp | |
parent | 3703ff41632ea5f5749f35fe380edc8872f34d6d (diff) | |
download | llvm-405fe67f1424284173459575b1081f42935c50fd.zip llvm-405fe67f1424284173459575b1081f42935c50fd.tar.gz llvm-405fe67f1424284173459575b1081f42935c50fd.tar.bz2 |
Modify existing commands with arguments to use the new argument mechanism
(for standardized argument names, argument help, etc.)
llvm-svn: 115570
Diffstat (limited to 'lldb/source/Commands/CommandObjectSyntax.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSyntax.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectSyntax.cpp b/lldb/source/Commands/CommandObjectSyntax.cpp index 8bc49a7..667ae7f 100644 --- a/lldb/source/Commands/CommandObjectSyntax.cpp +++ b/lldb/source/Commands/CommandObjectSyntax.cpp @@ -33,6 +33,18 @@ CommandObjectSyntax::CommandObjectSyntax (CommandInterpreter &interpreter) : "Shows the correct syntax for a given debugger command.", "syntax <command>") { + CommandArgumentEntry arg; + CommandArgumentData command_arg; + + // Define the first (and only) variant of this arg. + command_arg.arg_type = eArgTypeCommandName; + command_arg.arg_repetition = eArgRepeatPlain; + + // 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); } CommandObjectSyntax::~CommandObjectSyntax() |