Y and N args

Peter Rice peter.rice at uk.lionbioscience.com
Thu Sep 12 09:31:12 UTC 2002

Edgar Crowdy wrote:

> I'm having trouble with a program called cirdna.  In that program I can
> use "-noticklines" and "-nointersymbol" but I can't express a 'yes' by
> saying -ticklines or -intersymbol as in other programs.  It only runs if I
> say '-intersymbol Y', for example.
> Is cirdna an exception to the rule or are there other programs?
> Will placing a Y or N after all Y/N parameters work?


cirdna is using strings for ticklines and intersymbol. That is why the 
value is required.

This needs to be fixed - that part is easy. Simply make cirdna use boolean 
options as it should.

More worrying is that -nointersymbol was allowed. That really must be only 
for booleans.

For example, seqret -nooutfile will write to a file called "N". Not too 
surprising that nobody has tried this before :-)

The boolean testing code is in the right function. Should be easy to modify.


Peter Rice

Peter Rice, LION Bioscience Ltd, Cambridge, UK
peter.rice at uk.lionbioscience.com +44 1223 224723

More information about the EMBOSS mailing list