print version in recollindex help
This commit is contained in:
parent
20b271ae3b
commit
131e0e7684
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: recollindex.cpp,v 1.37 2008-09-30 12:38:28 dockes Exp $ (C) 2004 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: recollindex.cpp,v 1.38 2008-10-14 06:07:42 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -39,6 +39,7 @@ using namespace std;
|
|||||||
#include "pathut.h"
|
#include "pathut.h"
|
||||||
#include "rclmon.h"
|
#include "rclmon.h"
|
||||||
#include "x11mon.h"
|
#include "x11mon.h"
|
||||||
|
#include "rclversion.h"
|
||||||
|
|
||||||
// Globals for exit cleanup
|
// Globals for exit cleanup
|
||||||
ConfIndexer *confindexer;
|
ConfIndexer *confindexer;
|
||||||
@ -253,6 +254,7 @@ Usage(FILE *where = stderr)
|
|||||||
{
|
{
|
||||||
FILE *fp = (op_flags & OPT_h) ? stdout : stderr;
|
FILE *fp = (op_flags & OPT_h) ? stdout : stderr;
|
||||||
fprintf(fp, "%s: Usage: %s", thisprog, usage);
|
fprintf(fp, "%s: Usage: %s", thisprog, usage);
|
||||||
|
fprintf(fp, "Recoll version: %s\n", rclversion);
|
||||||
exit((op_flags & OPT_h)==0);
|
exit((op_flags & OPT_h)==0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user