Skip to content
Permalink
Browse files

Made indexer responsible to -h and --help params

That fixes #947
  • Loading branch information...
klirichek committed Aug 1, 2019
1 parent 10b89f4 commit 56c8584456293665ddd4ce4c94307d74473a78b9
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/indexer.cpp
@@ -1645,6 +1645,12 @@ int main ( int argc, char ** argv )
bool bVerbose = false;
CSphString sDumpRows;

if ( argc==2 && ( !strcmp ( argv[1], "--help" ) || !strcmp ( argv[1], "-h" )))
{
ShowHelp();
return 0;
}

int i;
for ( i=1; i<argc; i++ )
{

0 comments on commit 56c8584

Please sign in to comment.
You can’t perform that action at this time.