forked from OSchip/llvm-project
<rdar://problem/13270271>
Only add the — (double dash) separator to a command syntax if it has any options to be separated from arguments Also remove the unused Translate() method from CommandObject llvm-svn: 184163
This commit is contained in:
parent
85d3eeb6e7
commit
ca5acdbef8
|
@ -107,9 +107,6 @@ public:
|
|||
const char *
|
||||
GetSyntax ();
|
||||
|
||||
const char *
|
||||
Translate ();
|
||||
|
||||
const char *
|
||||
GetCommandName ();
|
||||
|
||||
|
@ -129,7 +126,7 @@ public:
|
|||
// the Command object from the Command dictionary (aliases have their own
|
||||
// deletion scheme, so they do not need to care about this)
|
||||
virtual bool
|
||||
IsRemovable() const { return false; }
|
||||
IsRemovable () const { return false; }
|
||||
|
||||
bool
|
||||
IsAlias () { return m_is_alias; }
|
||||
|
|
|
@ -94,7 +94,7 @@ CommandObject::GetSyntax ()
|
|||
if (m_arguments.size() > 0)
|
||||
{
|
||||
syntax_str.Printf (" ");
|
||||
if (WantsRawCommandString())
|
||||
if (WantsRawCommandString() && GetOptions() && GetOptions()->NumCommandOptions())
|
||||
syntax_str.Printf("-- ");
|
||||
GetFormattedCommandArguments (syntax_str);
|
||||
}
|
||||
|
@ -104,13 +104,6 @@ CommandObject::GetSyntax ()
|
|||
return m_cmd_syntax.c_str();
|
||||
}
|
||||
|
||||
const char *
|
||||
CommandObject::Translate ()
|
||||
{
|
||||
//return m_cmd_func_name.c_str();
|
||||
return "This function is currently not implemented.";
|
||||
}
|
||||
|
||||
const char *
|
||||
CommandObject::GetCommandName ()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue