summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-17 15:03:01 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-17 15:03:01 +0100
commit0c2316b638020f4087a664525f9ce7004d506488 (patch)
tree350d8a043bc05e2ef0aebc054dfbd64b9f7583b2 /vdr.c
parentf42cbac2375bfa320f9acdf87f80bc2fd70fed36 (diff)
downloadvdr-0c2316b638020f4087a664525f9ce7004d506488.tar.gz
vdr-0c2316b638020f4087a664525f9ce7004d506488.tar.bz2
Added the new command line option --updindex
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vdr.c b/vdr.c
index 53d8bacc..336130f8 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 3.14 2015/01/14 12:11:41 kls Exp $
+ * $Id: vdr.c 3.15 2015/01/17 14:48:09 kls Exp $
*/
#include <getopt.h>
@@ -269,6 +269,7 @@ int main(int argc, char *argv[])
{ "shutdown", required_argument, NULL, 's' },
{ "split", no_argument, NULL, 's' | 0x100 },
{ "terminal", required_argument, NULL, 't' },
+ { "updindex", required_argument, NULL, 'u' | 0x200 },
{ "user", required_argument, NULL, 'u' },
{ "userdump", no_argument, NULL, 'u' | 0x100 },
{ "version", no_argument, NULL, 'V' },
@@ -463,6 +464,8 @@ int main(int argc, char *argv[])
case 'u' | 0x100:
UserDump = true;
break;
+ case 'u' | 0x200:
+ return GenerateIndex(optarg, true) ? 0 : 2;
case 'V': DisplayVersion = true;
break;
case 'v' | 0x100:
@@ -569,6 +572,7 @@ int main(int argc, char *argv[])
" -t TTY, --terminal=TTY controlling tty\n"
" -u USER, --user=USER run as user USER; only applicable if started as\n"
" root\n"
+ " --updindex=REC update index for recording REC and exit\n"
" --userdump allow coredumps if -u is given (debugging)\n"
" -v DIR, --video=DIR use DIR as video directory (default: %s)\n"
" -V, --version print version information and exit\n"