|
@@ -13,19 +13,19 @@ static int cmd_help_exec ( int argc, char **argv ) {
|
13
|
13
|
struct command *ccmd;
|
14
|
14
|
int unknown = 1;
|
15
|
15
|
if(argc == 1){
|
16
|
|
- printf("Built in commands:\n\n\texit, quit\t\tExit the command line and boot\n\nCompiled in commands:\n\n");
|
|
16
|
+ printf("Available commands:\n\n exit - Exit the command line and boot\n");
|
17
|
17
|
|
18
|
18
|
for ( ccmd = cmd_start ; ccmd < cmd_end ; ccmd++ ) {
|
19
|
|
- printf ("\t%s\t\t%s\n", ccmd->name, ccmd->desc );
|
|
19
|
+ printf (" %s - %s\n", ccmd->name, ccmd->desc );
|
20
|
20
|
}
|
21
|
21
|
}else{
|
22
|
22
|
if(!strcmp(argv[1], "exit") || !strcmp(argv[1], "quit")){
|
23
|
|
- printf("exit, quit - The quit command\n\nUsage:\nquit or exit\n\n\tExample:\n\t\texit\n");
|
|
23
|
+ printf("exit - Exit the command line and boot\n\nUsage:\n exit\n");
|
24
|
24
|
}else{
|
25
|
25
|
for ( ccmd = cmd_start ; ccmd < cmd_end ; ccmd++ ) {
|
26
|
26
|
if(!strcmp(ccmd->name, argv[1])){
|
27
|
27
|
unknown = 0;
|
28
|
|
- printf ("\t%s - %s\n\nUsage:\n%s\n", ccmd->name, ccmd->desc, ccmd->usage );
|
|
28
|
+ printf ("%s - %s\n\nUsage:\n %s\n", ccmd->name, ccmd->desc, ccmd->usage );
|
29
|
29
|
break;
|
30
|
30
|
}
|
31
|
31
|
}
|
|
@@ -40,7 +40,7 @@ static int cmd_help_exec ( int argc, char **argv ) {
|
40
|
40
|
|
41
|
41
|
struct command help_command __command = {
|
42
|
42
|
.name = "help",
|
43
|
|
- .usage = "help <command>\n\n\tExample:\n\t\thelp help\n",
|
|
43
|
+ .usage = "help <command>\n\nExample:\n help help\n",
|
44
|
44
|
.desc = "The help command",
|
45
|
45
|
.exec = cmd_help_exec,
|
46
|
46
|
};
|