Re: [PATCH] - Updated usage and simplified sub-command action invocation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <git@...>
Date: Thursday, January 10, 2008 - 2:51 am

On Jan 10, 2008 12:23 PM, Junio C Hamano <gitster@pobox.com> wrote:

I agree that your comment is better than, I will change it accordingly
when resubmitting it.


I will recode it to have all options except for --quiet (which is
inverse of -v or --verbose) be mentioned after the subcommand.


Actually module_$command is not possible because only add's module is
module_add rest are modules_$command. Thus I would require another if
else and that was the original reason for not using it. Instead I
should have (and will) used -

       case "$1" in
       add)
               add=1
               command="module_$1"
               shift
               break
               ;;
       init|update|status)
               init=1
               command="modules_$1"
               shift
               check_for_terminator "$1"
               break
               ;;


As add subcommand does not support --cached it should be considered in
-*, just mentioning for your FYI, I got the point of module parsing
their own arguments and I am in agreement.


I will make the necessary changes and resubmit the patch tomorrow.

Best regards,

-- 
Imran M Yousuf
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] - Updated usage and simplified sub-command actio..., Imran M Yousuf, (Thu Jan 10, 2:51 am)