Changes in uspace/app/bdsh/cmds/modules/help/help.c [36ab7c7:6d100fd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/help/help.c
r36ab7c7 r6d100fd 43 43 extern const char *progname; 44 44 45 #define HELP_IS_BATCH 3 45 46 #define HELP_IS_COMMANDS 2 46 47 #define HELP_IS_MODULE 1 … … 54 55 { 55 56 int rc = HELP_IS_RUBBISH; 57 58 if (str_cmp(cmd, "batch") == 0) 59 return HELP_IS_BATCH; 56 60 57 61 if (str_cmp(cmd, "commands") == 0) … … 87 91 "\n If no argument is given to %s, a list of commands are shown\n\n", 88 92 cmdname, cmdname, cmdname, cmdname); 93 } 94 95 return; 96 } 97 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"); 89 113 } 90 114 … … 121 145 } 122 146 147 printf(" %-16s\t%s\n", "batch", "Issue batch of commands"); 123 148 printf("\n Try %s %s for more information on how `%s' works.\n\n", 124 149 cmdname, cmdname, cmdname); … … 182 207 help_commands(); 183 208 return CMD_SUCCESS; 209 case HELP_IS_BATCH: 210 help_batch(level); 211 return CMD_SUCCESS; 184 212 case HELP_IS_MODULE: 185 213 help_module(mod_switch, level);
Note:
See TracChangeset
for help on using the changeset viewer.