From c73154420b3f9c227da05d3a45d61b8d719d2985 Mon Sep 17 00:00:00 2001 From: Allen Martin Date: Thu, 5 Sep 2013 13:33:25 -0700 Subject: tegrarcm: Clean up usage info Added --help and --version commands to usage. Made it more clear that --entryaddr is optional. Signed-off-by: Allen Martin Reviewed-by: Stephen Warren --- src/main.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index a6c2bf0..80de04c 100644 --- a/src/main.c +++ b/src/main.c @@ -87,9 +87,16 @@ static void print_version(char *progname) static void usage(char *progname) { - fprintf(stderr, "usage: %s --bct=bctfile --bootloader=blfile --loadaddr= --entryaddr=\n", progname); + fprintf(stderr, "usage: %s [options] --bct=bctfile --bootloader=blfile --loadaddr=\n", progname); fprintf(stderr, "\n"); - fprintf(stderr, "\tIf entryaddr is not specified, it's assumed to be the same as loadaddr\n"); + fprintf(stderr, "Options:\n"); + fprintf(stderr, "\t--entryaddr=\n"); + fprintf(stderr, "\t\tSpecify the entry point for the bootloader, if this option is\n"); + fprintf(stderr, "\t\tnot provided, it is assumed to be loadaddr\n"); + fprintf(stderr, "\t--help\n"); + fprintf(stderr, "\t\tPrint this help information\n"); + fprintf(stderr, "\t--version\n"); + fprintf(stderr, "\t\tPrint version information and exit\n"); fprintf(stderr, "\n"); } -- cgit v1.2.1