changeset 3987:a80d0b59ca0e

fixed -npp help ... i think i need more sleep ;)
author michael
date Fri, 04 Jan 2002 21:56:11 +0000
parents da96a04ec11e
children a5c59d8637a9
files postproc/postprocess.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/postprocess.c	Fri Jan 04 19:36:51 2002 +0000
+++ b/postproc/postprocess.c	Fri Jan 04 21:56:11 2002 +0000
@@ -580,13 +580,6 @@
 
 	strncpy(temp, name, GET_MODE_BUFFER_SIZE);
 
-	if(!strcmp("help", name))
-	{
-		printf("%s", help);
-		ppMode.error++;
-		return ppMode;
-	}
-	
 	if(verbose) printf("%s\n", name);
 
 	for(;;){
@@ -768,6 +761,13 @@
 int readPPOpt(void *conf, char *arg)
 {
 	int quality;
+	
+	if(!strcmp("help", arg))
+	{
+		printf("%s", help);
+		exit(1);
+	}
+	
 	for(quality=0; quality<GET_PP_QUALITY_MAX+1; quality++)
 	{
 		gPPMode[quality]= getPPModeByNameAndQuality(arg, quality);