I don't quite manage to figure out gits argv parsing and would need some help on the way.
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?