From 006f89258e4232194e042f790d9ef7307a105f22 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Fri, 7 Jun 2013 14:00:56 +0800 Subject: [PATCH] update usage with all supported options. --- main.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/main.c b/main.c index 5b1758c..d8e6aba 100644 --- a/main.c +++ b/main.c @@ -105,13 +105,20 @@ static void version( void) { static void usage( void) { - fputs( "Usage: " PROGRAM_NAME " filename\n" - " or: " PROGRAM_NAME " [options]\n\n" - " + start at the end of file\n" - " + start at line \n" - " -g[G] go to line \n" - " --help display this help and exit\n" - " --version output version information and exit\n", stdout) ; + fputs( "Usage: " PROGRAM_NAME " [OPTION].. [FILE]..\n\n" + " + start at the end of file\n" + " + start at line \n" + " --help display this help and exit\n" + " --version output version information and exit\n" + " -a|A process error file\n" + " -e|E edit file\n" + " -g|G go to line \n" + " -k|K use code key\n" + " -n|N accept null chars\n" + " -r|R restrictive use\n" + " -s|S search string\n" + " -v|V view file\n" + , stdout) ; }