*** main.c.orig	2008-01-29 18:23:11.000000000 -0600
--- main.c	2008-01-29 18:41:07.000000000 -0600
***************
*** 155,162 ****
  		else if (!strcmp("--nopict", argv[i])) nopict_mode = TRUE;
  		else if (!strcmp("-n", argv[i])) nopict_mode = TRUE;
  		else {
- 			if (*argv[i] == '-') usage();
- 
  			if (path) 
  				usage();
  			else 	
--- 155,160 ----
***************
*** 198,211 ****
  	if (dump_mode) fprintf(stderr, "Dump mode.\n");
  
  	/* Open file for reading. Append ".rtf" to file name if not supplied. */
! 	f = fopen(path, "r");
! 	if (!f) {
! 		char path2[200];
! 		strcpy(path2, path);
! 		strcat(path2, ".rtf");
! 		f = fopen(path2, "r");
! 		if (!f)
! 			error_handler("Cannot open input file");
  	}
  
  	if (verbose_mode || debug_mode) fprintf(stderr, "Processing %s...\n", path); 
--- 196,217 ----
  	if (dump_mode) fprintf(stderr, "Dump mode.\n");
  
  	/* Open file for reading. Append ".rtf" to file name if not supplied. */
! 	if(!strncmp(path, "-", 1))
! 		{
! 		f = stdin;
! 		path = "stdin";
! 	}
! 	else
! 		{
! 		f = fopen(path, "r");
! 		if (!f) {
! 			char path2[200];
! 			strcpy(path2, path);
! 			strcat(path2, ".rtf");
! 			f = fopen(path2, "r");
! 			if (!f)
! 				error_handler("Cannot open input file");
! 		}
  	}
  
  	if (verbose_mode || debug_mode) fprintf(stderr, "Processing %s...\n", path); 
