From c6060a8feaf61ec29f2723dd6268085608126e7f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 5 Dec 2006 10:27:16 +0000 Subject: [PATCH] Tidy up some more output. The command-line code needs some severe overhauling, but this is not the time to do it. --- src/commandline/commands/help.c | 10 +++++----- src/commandline/commands/nvo_cmd.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/commandline/commands/help.c b/src/commandline/commands/help.c index 30ab9623..6ba61753 100644 --- a/src/commandline/commands/help.c +++ b/src/commandline/commands/help.c @@ -13,19 +13,19 @@ static int cmd_help_exec ( int argc, char **argv ) { struct command *ccmd; int unknown = 1; if(argc == 1){ - printf("Built in commands:\n\n\texit, quit\t\tExit the command line and boot\n\nCompiled in commands:\n\n"); + printf("Available commands:\n\n exit - Exit the command line and boot\n"); for ( ccmd = cmd_start ; ccmd < cmd_end ; ccmd++ ) { - printf ("\t%s\t\t%s\n", ccmd->name, ccmd->desc ); + printf (" %s - %s\n", ccmd->name, ccmd->desc ); } }else{ if(!strcmp(argv[1], "exit") || !strcmp(argv[1], "quit")){ - printf("exit, quit - The quit command\n\nUsage:\nquit or exit\n\n\tExample:\n\t\texit\n"); + printf("exit - Exit the command line and boot\n\nUsage:\n exit\n"); }else{ for ( ccmd = cmd_start ; ccmd < cmd_end ; ccmd++ ) { if(!strcmp(ccmd->name, argv[1])){ unknown = 0; - printf ("\t%s - %s\n\nUsage:\n%s\n", ccmd->name, ccmd->desc, ccmd->usage ); + printf ("%s - %s\n\nUsage:\n %s\n", ccmd->name, ccmd->desc, ccmd->usage ); break; } } @@ -40,7 +40,7 @@ static int cmd_help_exec ( int argc, char **argv ) { struct command help_command __command = { .name = "help", - .usage = "help \n\n\tExample:\n\t\thelp help\n", + .usage = "help \n\nExample:\n help help\n", .desc = "The help command", .exec = cmd_help_exec, }; diff --git a/src/commandline/commands/nvo_cmd.c b/src/commandline/commands/nvo_cmd.c index ea1478f3..662ad7b0 100644 --- a/src/commandline/commands/nvo_cmd.c +++ b/src/commandline/commands/nvo_cmd.c @@ -41,7 +41,7 @@ static int show_exec ( int argc, char **argv ) { struct command show_command __command = { .name = "show", - .usage = "show\n", + .usage = "show \n", .desc = "Show stored options", .exec = show_exec, }; @@ -78,7 +78,7 @@ static int set_exec ( int argc, char **argv ) { struct command set_command __command = { .name = "set", - .usage = "set