On 01/03/2012, at 7:12 PM, Daz DeBoer wrote: > Thanks for the feedback. I agree with Luke that --refresh=dependencies is not > nice, but I understand not wanting to introduce a different pattern. > > The alternative option is NOT to change the CLI parsing contract (maybe just > deprecate --option <space> arg), but to deprecate and replace: > --refresh dependencies => --refresh-dependencies > --cache rebuild => --refresh-task-cache (or something better) > > This isn't a new syntax, it's just 2 options with similar names because they > do similar things.
Two, not very convincing arguments for --refresh-dependencies style: * Easier to document (we don't have to try and generalise “refresh”) * Better for tab completion, i.e. hitting tab would cycle through all options instead of just completing --refresh= and then having to repeat the process. -- Luke Daley Principal Engineer, Gradleware http://gradleware.com
