]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Doc] Accent about `command options` help
authorAndrej Zverev <andrej.zverev@gmail.com>
Fri, 17 Jun 2016 09:40:52 +0000 (12:40 +0300)
committerAndrej Zverev <andrej.zverev@gmail.com>
Fri, 17 Jun 2016 09:40:52 +0000 (12:40 +0300)
[Minor] Correct rspamadm -v to display actual version intead of help

doc/rspamadm.1.md
src/rspamadm/rspamadm.c

index 17bfa94c306b277009b4e3fd3cff2132026a9077..efe091da83588abb2e45f5e2c395edf02955aced 100644 (file)
@@ -8,22 +8,20 @@ rspamadm - rspamd administration utility
 
 rspamadm [*global_options*] [*command*] [*command_options*]...
 
-rspamadm -l
-
-rspamadm help
-
-rspamadm help <command>
-
-rspamadm --help
-
 # DESCRIPTION
 
 `rspamadm` is a routine to manage rspamd spam filtering system. It is intended to perform
 such actions as merging databases, performing configuration tests, encrypting passwords,
-signing configurations and so on. You can get a list of available commands by running
+signing configurations and so on. You can get a list of available **commands** by running
 
     rspamadm -l
 
+Also for each command you can check list of available **command_options** by running
+
+    rspamadm help command
+    rspamadm command --help
+    
+
 # OPTIONS
 
 -h, \--help
index b1cda55da6465bccbc761cf384d726118f62e2e4..523011a644196389041367609ec6b93396e607da 100644 (file)
@@ -56,7 +56,7 @@ static GOptionEntry entries[] = {
                        "Redefine UCL variable", NULL},
        {"help", 'h', 0, G_OPTION_ARG_NONE, &show_help,
                        "Show help", NULL},
-       {"version", 'h', 0, G_OPTION_ARG_NONE, &show_version,
+       {"version", 'v', 0, G_OPTION_ARG_NONE, &show_version,
                        "Show version", NULL},
        {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}
 };