Thread (36 messages) flat view 36 messages, 2 authors, 2016-06-15

Re: [PATCH 1/2] parse-options: introduce OPT_SUBCOMMAND

From: Ramkumar Ramachandra <hidden>
Date: 2016-06-15 22:52:35

Hi,

Jonathan Nieder wrote:
Ramkumar Ramachandra wrote:
quoted
, and create a new
OPT_SUBCOMMAND; this is built on top of OPTION_BIT to allow for the
detection of more than one subcommand.
This part I am not convinced about.  Usually each subcommand takes its
own options, so I cannot see this OPT_SUBCOMMAND being actually useful
for commands like "git stash" or "git remote".
Hm, what difference does that make?  We still have to parse the
subcommand, and subsequently use an if-else construct to parse more
options depending on the subcommand, no?

-- Ram
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help