On Wed, Dec 12, 2018 at 9:05 PM Stefan Beller <sbeller@xxxxxxxxxx> wrote: > > On Wed, Dec 12, 2018 at 11:47 AM Duy Nguyen <pclouds@xxxxxxxxx> wrote: > > > > I'm not going to bother you with patches (yet) but I could use a few > > eyeballs to check the help usage (and perhaps the option grouping) for > > commands that take diff options. > > The grouping looks good from a cursory view, but ... > > > Forget about hiding irrelevant options for this particular command for > > now. This is something we can do later. > > .. this seems relevant: range-diff is a diff of diffs, > so for that particular command, I'd want to know if the option > (e.g. --stat) is applied to the inner or outer diff. Yeah I'll probably should send "git diff --no-index -h" instead. > Now back to your topic: Are you planning to send patches that > autogenerate these helps based on our source code? > Should I pay attention to some specific part of the output? All this comes from a new 'struct option' array in diff.c, very much like how we handle options everywhere else. So yeah sort of auto generation, but all the text has to be typed in manually first. -- Duy