Fix order of arguments for target stop-hook list/delete. Having
the argument description in the command name could cause a command
alias to crash, e.g.
command alias zzz target stop-hook delete 1
because the "name" is used to re-fetch the exact CommandObject when
adding the final arg.
<rdar://problem/10423753>
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@144330 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectTarget.cpp b/source/Commands/CommandObjectTarget.cpp
index f7dcad8..b1f103f 100644
--- a/source/Commands/CommandObjectTarget.cpp
+++ b/source/Commands/CommandObjectTarget.cpp
@@ -3830,9 +3830,9 @@
CommandObjectTargetStopHookDelete (CommandInterpreter &interpreter) :
CommandObject (interpreter,
- "target stop-hook delete [<id>]",
+ "target stop-hook delete",
"Delete a stop-hook.",
- "target stop-hook delete")
+ "target stop-hook delete [<idx>]")
{
}
@@ -3976,9 +3976,9 @@
CommandObjectTargetStopHookList (CommandInterpreter &interpreter) :
CommandObject (interpreter,
- "target stop-hook list [<type>]",
+ "target stop-hook list",
"List all stop-hooks.",
- "target stop-hook list")
+ "target stop-hook list [<type>]")
{
}