Changeset 81bc309 in mainline for uspace/app/bdsh/cmds/modules/help/help.c
- Timestamp:
- 2011-08-20T17:03:29Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8f70eb
- Parents:
- c916dfc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/help/help.c
rc916dfc r81bc309 43 43 extern const char *progname; 44 44 45 #define HELP_IS_BATCH 346 45 #define HELP_IS_COMMANDS 2 47 46 #define HELP_IS_MODULE 1 … … 55 54 { 56 55 int rc = HELP_IS_RUBBISH; 57 58 if (str_cmp(cmd, "batch") == 0)59 return HELP_IS_BATCH;60 56 61 57 if (str_cmp(cmd, "commands") == 0) … … 96 92 } 97 93 98 static void help_batch(unsigned int level)99 {100 if (level == HELP_SHORT) {101 printf(102 "\n batch [filename]\n"103 " Issues commands stored in the file.\n"104 " Each command must correspond to the single line in the file.\n\n");105 } else {106 printf(107 "\n `batch' - issues a batch of commands\n"108 " Issues commands stored in the file. Each command must correspond\n"109 " to the single line in the file. Empty lines can be used to visually\n"110 " separate groups of commands. There is no support for comments,\n"111 " variables, recursion or other programming constructs - the `batch'\n"112 " command is indeed very trivial.\n\n");113 }114 115 return;116 }117 118 94 static void help_commands(void) 119 95 { … … 145 121 } 146 122 147 printf(" %-16s\t%s\n", "batch", "Issue batch of commands");148 123 printf("\n Try %s %s for more information on how `%s' works.\n\n", 149 124 cmdname, cmdname, cmdname); … … 207 182 help_commands(); 208 183 return CMD_SUCCESS; 209 case HELP_IS_BATCH:210 help_batch(level);211 return CMD_SUCCESS;212 184 case HELP_IS_MODULE: 213 185 help_module(mod_switch, level);
Note:
See TracChangeset
for help on using the changeset viewer.