Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 28, 2010, 12:37:38 AM (15 years ago)
Author:
landauf
Message:

the unhide command now also supports auto-completion for the hidden commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/command/CommandExecutor.cc

    r7233 r7234  
    4444
    4545    _SetConsoleCommand("unhide", &CommandExecutor::unhide)
    46         .argumentCompleter(0, autocompletion::hiddengroupsandcommands())
    47         .argumentCompleter(1, autocompletion::hiddensubcommands())
    48         .defaultValue(1, "")
    49         .defaultValue(2, "");
     46        .argumentCompleter(0, autocompletion::hiddencommand());
    5047
    5148    /* static */ CommandExecutor& CommandExecutor::getInstance()
     
    156153    }
    157154
    158     /* static */ MultiType CommandExecutor::unhide(const std::string& group, const std::string& name, const std::string& arguments)
     155    /* static */ MultiType CommandExecutor::unhide(const std::string& command)
    159156    {
    160         return CommandExecutor::queryMT(group + " " + name + " " + arguments);
     157        return CommandExecutor::queryMT(command);
    161158    }
    162159}
Note: See TracChangeset for help on using the changeset viewer.