From: Fredrik Gustafsson <iveqy@iveqy.com>
To: git@vger.kernel.org
Subject: Parse --o in format-patch
Date: Fri, 28 Jun 2013 18:05:00 +0200 [thread overview]
Message-ID: <20130628160459.GA16832@paksenarrion.iveqy.com> (raw)
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
next reply other threads:[~2013-06-28 16:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-28 16:05 Fredrik Gustafsson [this message]
2013-06-28 16:31 ` Parse --o in format-patch Jeff King
2013-06-28 16:44 ` Fredrik Gustafsson
2013-06-28 16:49 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130628160459.GA16832@paksenarrion.iveqy.com \
--to=iveqy@iveqy.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).