I would basically agree about too much flexibility. Rather than -set which is not that obvious, how about -subs foo=bar
My logic is that I always end up explaining the [foo] as substitutions, rather than other parameters which are options or things used by the code. Peter Peter Higginson Newport Networks Ltd, Direct line 01494 470694 http://www.newport-networks.com/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Olivier Jacques Sent: 22 November 2006 13:42 To: Charles P Wright Cc: [email protected] Subject: Re: [Sipp-users] Generic Command Line Processing Charles P Wright wrote: > Hello, > > I am wondering how people would feel about changing the generic command > line processing option from something like: > > -foo bar > > That sets the generic variable named foo to the value bar to something > along the following: > > -set foo=bar > > This would eliminate ambiguity in command line processing so that a > mistyped option is not silently ignored. > > Another thing that I've been thinking of is changing the command line > parsing to some sort of table driven parsing, so that it is easier to add > command line options without so much code. Right now option processing is > 834 lines of code, much of which is redundant. Does anyone have thoughts > on this? > > Charles > > Charles, It looks like an acceptable alternative. We added to much flexibility by authorizing -foo bar. So your proposal is ok. For the command line parsing code, it grew with no re-factoring, leading to much redundant code. Again, your changes seems very necessary. Olivier. -- Olivier HP OpenCall Software http://www.hp.com/go/opencall/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users --------------- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden. --------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
