Re: [PATCH] api-parse-options.txt: document OPT_CMDMODE()

2016-03-24 Thread Pranit Bauva
On Thu, Mar 24, 2016 at 10:46 PM, Junio C Hamano wrote: > Pranit Bauva writes: > +`OPT_CMDMODE(short, long, &int_var, description, enum_val)`:: + Introduce an option for subcommands. It is useful when you want to use + the command with a particular sub command only an

Re: [PATCH] api-parse-options.txt: document OPT_CMDMODE()

2016-03-24 Thread Junio C Hamano
Pranit Bauva writes: >>> +`OPT_CMDMODE(short, long, &int_var, description, enum_val)`:: >>> + Introduce an option for subcommands. It is useful when you want to use >>> + the command with a particular sub command only and ignore other sub >>> + commands it has. It will set `int_var` t

Re: [PATCH] api-parse-options.txt: document OPT_CMDMODE()

2016-03-24 Thread Pranit Bauva
On Thu, Mar 24, 2016 at 9:37 PM, Junio C Hamano wrote: > Pranit Bauva writes: > >> OPT_CMDMODE() was introduced in the release of 1.8.5 which makes the use >> of subcommands in the form of arguments a lot cleaner and easier. >> --- > > Sign-off? Will include this. >> Documentation/technical/ap

Re: [PATCH] api-parse-options.txt: document OPT_CMDMODE()

2016-03-24 Thread Junio C Hamano
Pranit Bauva writes: > OPT_CMDMODE() was introduced in the release of 1.8.5 which makes the use > of subcommands in the form of arguments a lot cleaner and easier. > --- Sign-off? > Documentation/technical/api-parse-options.txt | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/Doc

[PATCH] api-parse-options.txt: document OPT_CMDMODE()

2016-03-24 Thread Pranit Bauva
OPT_CMDMODE() was introduced in the release of 1.8.5 which makes the use of subcommands in the form of arguments a lot cleaner and easier. --- Documentation/technical/api-parse-options.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/technical/api-parse-options.txt b/Do