# PATCH: fix cg-mkpatch "-f" option

1 messages from 2005-10-14 to 2005-10-14. Participants: Klaus Weidner.
Thread: https://gitlist.dev/t/2107

## Klaus Weidner, 2005-10-14 14:23

Subject: PATCH: fix cg-mkpatch "-f" option
Message-ID: <20051014142345.GB30663@w-m-p.com>
URL: https://gitlist.dev/e/20051014142345.GB30663%40w-m-p.com

```
Hello, 

in cogito-0.15.1, the "-f" option to specify a format string for output
filenames didn't work, it was getting an empty OPTARG. The following
patch fixes it for me.

-Klaus

--- cogito/cg-mkpatch.orig	2005-10-14 09:16:04.000000000 -0500
+++ cogito/cg-mkpatch	2005-10-14 09:16:33.000000000 -0500
@@ -119,7 +119,7 @@
 		mergebase=1
 	elif optparse -d=; then
 		outdir="$OPTARG"
-	elif optparse -f; then
+	elif optparse -f=; then
 		fileformat="$OPTARG"
 	else
 		optfail

```
