From 2aa9f6b0457a57243232ac229b534ec2b7b9de13 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Tue, 22 Jul 2014 16:25:00 +0200 Subject: [PATCH] native: clean up and clarify help - reorder option details to mirror the order given in usage - list option arguments in option details - clarify option arguments --- cpu/native/startup.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/cpu/native/startup.c b/cpu/native/startup.c index ef72f42105..9a70f3e3db 100644 --- a/cpu/native/startup.c +++ b/cpu/native/startup.c @@ -169,19 +169,22 @@ void usage_exit(void) real_printf(" help: %s -h\n", _progname); real_printf("\nOptions:\n\ --h help\n\ --i specify instance id (set by config module)\n\ --d daemonize\n\ --e redirect stderr to file\n\ --E do not redirect stderr (i.e. leave sterr unchanged despite socket/daemon io)\n\ --o redirect stdout to file when not attached to socket\n"); +-h help\n"); #ifdef MODULE_UART0 real_printf("\ --u redirect stdio to UNIX socket\n\ - if no path is given /tmp/riot.tty.PID is used\n\ --t redirect stdio to TCP socket\n"); +-t redirect stdio to TCP socket listening on \n\ +-u redirect stdio to UNIX socket ( if given,\n\ + /tmp/riot.tty.PID otherwise)\n"); #endif + real_printf("\ +-i specify instance id (set by config module)\n\ +-d daemonize\n\ +-e redirect stderr to file\n\ +-E do not redirect stderr (i.e. leave sterr unchanged despite\n\ + daemon/socket io)\n\ +-o redirect stdout to file (/tmp/riot.stdout.PID) when not attached\n\ + to socket\n"); real_printf("\n\ The order of command line arguments matters.\n");