From: Allen Martin Subject: [PATCHv2 08/11] tegrarcm: Clean up usage info Date: Mon, 16 Sep 2013 15:24:55 -0700 Message-ID: <1379370298-20404-9-git-send-email-amartin@nvidia.com> References: <1379370298-20404-1-git-send-email-amartin@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1379370298-20404-1-git-send-email-amartin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Allen Martin List-Id: linux-tegra@vger.kernel.org Added --help and --version commands to usage. Made it more clear that --entryaddr is optional. Signed-off-by: Allen Martin --- 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"); } -- 1.8.1.5