git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Parse --o in format-patch
@ 2013-06-28 16:05 Fredrik Gustafsson
  2013-06-28 16:31 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Gustafsson @ 2013-06-28 16:05 UTC (permalink / raw)
  To: git

Hi,
I don't quite manage to figure out gits argv parsing and would need some
help on the way.

I want:
git format-patch -o outdir HEAD~

Work exactly the way it does now, setting output_directory to outdir.
But I also want
git format-patch -o HEAD~

to set output_directory with a NULL value so that I can assign a default
value to it. Is that even possible with the current argv-parsing implementation?

The currect argv parser is using OPTION_CALLBACK so I thought that that
callback should be able to determine if there was an outdir supplied or
not.

Or is the correct solution to also add a bolean type OPTION_BOOLEAN for
-o?
-- 
Med vänliga hälsningar
Fredrik Gustafsson

tel: 0733-608274
e-post: iveqy@iveqy.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-28 16:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-28 16:05 Parse --o in format-patch Fredrik Gustafsson
2013-06-28 16:31 ` Jeff King
2013-06-28 16:44   ` Fredrik Gustafsson
2013-06-28 16:49     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).