Re: [PATCH 1/6] gitopt: a new command-line option parser for git
- From
- Timo Hirvonen <tihirvon@gmail.com>
- Date
- May 9, 2006, 20:10 UTC
- Message-ID
- <20060509231031.b62576da.tihirvon@gmail.com>
- In-Reply-To
- <20060509191803.GA3676@localdomain>
Eric Wong <normalperson@yhbt.net> wrote:
Show 5 quoted lines
> I'm striving for backwards compatibility with existing usage. That > means as a diff option, -C alone works, as does -C20. I've made -C 20 > _not_ work because it breaks existing usage (where 20 could be a > filename, or a tree-ish). -C=20 would mean something > else,
I think optional arguments are still confusing. We could support both -C (no args) and -C=20 syntax.
> since I wanted to make pickaxe work exactly as it did before: > -S=var would search for '=var', not 'var'.
Some other options use -x=y syntax so this would be confusing. Pickaxe's -Stext syntax is a bit strange. I think -S text or -S=text would be more logical.
-- http://onion.dynserv.net/~timo/