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>

llvm-svn: 144330
This commit is contained in:
Jason Molenda
2011-11-10 23:03:44 +00:00
parent a113eb0205
commit ef5f6a2391

View File

@@ -3830,9 +3830,9 @@ public:
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 @@ public:
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>]")
{
}