]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Add --help to the command line to display the help
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 27 May 2012 05:48:08 +0000 (07:48 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 27 May 2012 05:48:08 +0000 (07:48 +0200)
That syntax is more user friendly.

Old -h is still accepted.

log.c

diff --git a/log.c b/log.c
index 5913241de45f66f5a986e87ba682aabdbe55f37f..d7c59254225e4b095c030914a43c43d92a9746d9 100644 (file)
--- a/log.c
+++ b/log.c
@@ -162,6 +162,7 @@ int main(int argc,char *argv[])
        {
                {"convert",no_argument,&convert,1},
                {"css",no_argument,&output_css,1},
+               {"help",no_argument,NULL,'h'},
                {"lastlog",required_argument,NULL,2},
                {"keeplogs",no_argument,NULL,3},
                {"split",no_argument,&split,1},