Changeset 1433ecda in mainline for uspace/app/bdsh/cmds/modules/help/help.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/help/help.c
r47b2d7e3 r1433ecda 79 79 if (level == HELP_SHORT) { 80 80 printf( 81 "\n %s [command] <extended>\n"82 " Use help [command] extended for detailed help on [command] "83 ", even `help'\n\n", cmdname);81 "\n %s [command] <extended>\n" 82 " Use help [command] extended for detailed help on [command] " 83 ", even `help'\n\n", cmdname); 84 84 } else { 85 85 printf( 86 "\n `%s' - shows help for commands\n"87 " Examples:\n"88 " %s [command] Show help for [command]\n"89 " %s [command] extended Show extended help for [command]\n"90 "\n If no argument is given to %s, a list of commands are shown\n\n",91 cmdname, cmdname, cmdname, cmdname);86 "\n `%s' - shows help for commands\n" 87 " Examples:\n" 88 " %s [command] Show help for [command]\n" 89 " %s [command] extended Show extended help for [command]\n" 90 "\n If no argument is given to %s, a list of commands are shown\n\n", 91 cmdname, cmdname, cmdname, cmdname); 92 92 } 93 93 … … 105 105 /* First, show a list of built in commands that are available in this mode */ 106 106 for (cmd = builtins; cmd->name != NULL; cmd++) { 107 108 109 110 111 107 if (is_builtin_alias(cmd->name)) 108 printf(" %-16s\tAlias for `%s'\n", cmd->name, 109 alias_for_builtin(cmd->name)); 110 else 111 printf(" %-16s\t%s\n", cmd->name, cmd->desc); 112 112 } 113 113 114 114 /* Now, show a list of module commands that are available in this mode */ 115 115 for (mod = modules; mod->name != NULL; mod++) { 116 117 118 119 120 116 if (is_module_alias(mod->name)) 117 printf(" %-16s\tAlias for `%s'\n", mod->name, 118 alias_for_module(mod->name)); 119 else 120 printf(" %-16s\t%s\n", mod->name, mod->desc); 121 121 } 122 122 123 123 printf("\n Try %s %s for more information on how `%s' works.\n\n", 124 124 cmdname, cmdname, cmdname); 125 125 } 126 126
Note:
See TracChangeset
for help on using the changeset viewer.