From: Vsevolod Stakhov Date: Sat, 30 May 2009 11:37:43 +0000 (+0400) Subject: * Improve rspamc utility for working without rspamd config X-Git-Tag: 0.2.7~135 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a654b27c5b10cdad72654386216dd43ae697b7be;p=rspamd.git * Improve rspamc utility for working without rspamd config --- diff --git a/rspamc.pl.in b/rspamc.pl.in index 8a0c53bea..6681fd6d9 100755 --- a/rspamc.pl.in +++ b/rspamc.pl.in @@ -8,6 +8,7 @@ # By default rspamc.pl would read ./rspamd.conf and default command is SYMBOLS use Socket qw(:DEFAULT :crlf); +use Getopt::Std; my %cfg = ( 'conf_file' => '@CMAKE_INSTALL_PREFIX@/etc/rspamd.conf', @@ -20,10 +21,19 @@ my %cfg = ( 'statfile' => '', ); +$main::VERSION = '@RSPAMD_VERSION@'; -sub usage { - return "Usage: rspamc.pl [-c conf_file] [-s statfile] [command]"; -} +sub HELP_MESSAGE { + print <