The only thing I would add to this is an exception condition: If no target has <help>, then print all targets. This would serve as a backward compatibility mode. To simplify upgrades.
Jose Alberto > -----Original Message----- > From: Peter Donald [mailto:[EMAIL PROTECTED] > Sent: Monday, August 14, 2000 6:36 AM > To: [EMAIL PROTECTED] > Subject: RE: [PATCH] Suggestion for new commandline switch -targets > > > At 09:32 14/8/00 -0400, you wrote: > >2) Only print targets that have the description attribute. > > > >My preference would be the first as that way all targets > would be shown be > >default rather than having to explicitly show them all. But > I guess it > >depends on whether you want most of your you want to be > hidden or shown. > > 2 is a much better option as large build files (the ones that > you don't > want people have to look through) are your target and on average in my > buildfiles I would say 80% shoul never be directly called, > 10% are okay to > call and 10% are in my usages's help. So in this case 2 is > definetly the > way to go. > Cheers, > > Pete > > *------------------------------------------------------* > | "Nearly all men can stand adversity, but if you want | > | to test a man's character, give him power." | > | -Abraham Lincoln | > *------------------------------------------------------* >
