--- multiplexer/repeatts.c 2004/06/17 22:04:07 1.10 +++ multiplexer/repeatts.c 2006/07/14 17:51:10 1.11 @@ -1,7 +1,7 @@ /* * ISO 13818 stream multiplexer / additional repeater tool * Copyright (C) 2001 Convergence Integrated Media GmbH Berlin - * Author: Oskar Schirmer (schirmer@scara.com) + * Copyright (C) 2005 Oskar Schirmer (schirmer@scara.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -213,9 +213,12 @@ static boolean command_init (int cargc, dati = dato = 0; pollc = -1; while (++cc < cargc) { - if (!strcmp (cargv[cc],"--help")) { + if ((!strcmp(cargv[cc],"--help")) || (!strcmp(cargv[cc],"-h"))) { command_help (cargv[0],""); return (FALSE); + } else if ((!strcmp(cargv[cc],"--version")) || (!strcmp(cargv[cc],"-V"))) { + fprintf(stderr, "1.0.7\n"); + return FALSE; } else if (!strcmp (cargv[cc],"-i")) { pollc = 0; } else if (!strcmp (cargv[cc],"-d")) { @@ -243,7 +246,8 @@ static boolean command_init (int cargc, command_help (cargv[0],""); return (FALSE); } - } else if ((ctime != NULL) || (cdelay != NULL) || (pollc <= 0)) { + } else if ((ctime != NULL) || (cdelay != NULL) || (pollc < 0)) { +D(fprintf(stderr,"ctime=%p, cdelay=%p, pollc=%d\n", ctime, cdelay, pollc)); command_help (cargv[0],"only -i must be given when started with no file.\n"); return (FALSE); }