Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5204 in orxonox.OLD for trunk/src/lib/shell/shell_input.cc


Ignore:
Timestamp:
Sep 18, 2005, 1:37:58 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Shell now has a real nice help function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_input.cc

    r5202 r5204  
    177177 * prints out some nice help about the Shell
    178178 */
    179 void ShellInput::help()
    180 {
    181   PRINT(0)("Help for the most important Shell-commands\n");
    182   PRINT(0)("F1 - HELP; F2 - DEBUG; ` - open/close shell\n");
    183   PRINT(0)("input order:\n");
    184   PRINT(0)("ClassName [objectName] function [parameter1, [parameter2 ...]]  or\n");
    185   PRINT(0)("Alias [parameter]\n");
     179void ShellInput::help(const char* className, const char* functionName)
     180{
     181  if (strlen(className) == 0)
     182  {
     183    PRINT(0)("Help for the most important Shell-commands\n");
     184    PRINT(0)("F1 - HELP; F2 - DEBUG; ` - open/close shell\n");
     185    PRINT(0)("input order:\n");
     186    PRINT(0)("ClassName [objectName] function [parameter1, [parameter2 ...]]  or\n");
     187    PRINT(0)("Alias [parameter]\n");
     188    PRINT(0)("- Also try 'help className'");
     189  }
     190  else if (strlen (className) > 0 && strlen (functionName) == 0)
     191  {
     192    ShellCommandClass::help(className);
     193    //PRINTF(1)("%s::%s\n", className, functionName);
     194  }
    186195}
    187196
Note: See TracChangeset for help on using the changeset viewer.