Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/help/help.c

    r6d100fd r36ab7c7  
    4343extern const char *progname;
    4444
    45 #define HELP_IS_BATCH           3
    4645#define HELP_IS_COMMANDS        2
    4746#define HELP_IS_MODULE          1
     
    5554{
    5655        int rc = HELP_IS_RUBBISH;
    57 
    58         if (str_cmp(cmd, "batch") == 0)
    59                 return HELP_IS_BATCH;
    6056
    6157        if (str_cmp(cmd, "commands") == 0)
     
    9692}
    9793
    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 
    11894static void help_commands(void)
    11995{
     
    145121        }
    146122
    147         printf("   %-16s\t%s\n", "batch", "Issue batch of commands");
    148123        printf("\n  Try %s %s for more information on how `%s' works.\n\n",
    149124                cmdname, cmdname, cmdname);
     
    207182                        help_commands();
    208183                        return CMD_SUCCESS;
    209                 case HELP_IS_BATCH:
    210                         help_batch(level);
    211                         return CMD_SUCCESS;
    212184                case HELP_IS_MODULE:
    213185                        help_module(mod_switch, level);
Note: See TracChangeset for help on using the changeset viewer.