From: Peter Weaver [peter.weaver@stelco.ca] Sent: Friday, September 20, 2002 11:02 AM To: Info-VAX@Mvb.Saic.Com Subject: Re: CLD question "JF Mezei" wrote in message news:3D8AF713.980A0977@videotron.ca... > I would like the following behaviour in a command. > > CHOCOLATE/LIST (nothing else required) > > CHOCOLATE param1 /BRIEF (or /FULL) /OVEN=value where param1 is required. > > In the second one, the only required thing is param1 and param1 is not part of > a list of valid values. >... Interesting challenge, the closest I could come up with is; define verb chocolate image sys$login:chocolate qualifier list, syntax=list_syntax parameter p1, label=hostname,prompt="Host Name" qualifier brief qualifier full qualifier oven, value (type=$number) disallow (brief and full) disallow (not hostname) ! Give an error if no hostname define syntax list_syntax qualifier list parameter p1, label=hostname disallow (hostname) ! Give an error if they type chocolate /list www.digital.com But it would be better (I think) to define the syntax as; $ CHOCOLATE /LIST $ CHOCOLATE /HOST hostname [/BRIEF] [/FULL] [/OVEN=value] If you go that route then you will have something like; define verb chocolate image chocolate qualifier list, syntax=list_syntax qualifier host, syntax=host_syntax disallow (not list and not host) define syntax host_syntax parameter p1, label=hostname,prompt="Host Name", value (required) qualifier host qualifier brief qualifier full qualifier oven, value (type=$number) disallow (brief and full) define syntax list_syntax qualifier list -- Peter Weaver Opinions are my own, and do not reflect the opinions of my employer, nor the company that it sub-contracts to, nor the company that it sub-contracts to.