Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#201 closed defect (fixed)

Subcommand abbreviation broken

Reported by: Tom Goddard Owned by: Greg Couch
Priority: major Milestone:
Component: Command Line Version:
Keywords: Cc: Elaine Meng
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Command "position init" gives in the log

positioninitialt
Expected a keyword

Abbreviations of subcommands appears to be broken.

Change History (7)

comment:1 by Elaine Meng, 10 years ago

Also happens with truncation of any color subcommand. For example:

color def yow rgb(20,150,50)

...puts in Log:

colordefinef yow rgb(200,150,50)
Expected a color or one of 'byatom', 'byelement', 'byhetero', 'bychain', 'bymodel', 'fromatoms', or 'random' or a keyword

There are analogous errors trying to use "color li" instead of "color list" and "color del" instead of "color delete".

comment:2 by Elaine Meng, 10 years ago

Cc: Elaine Meng added

comment:3 by Greg Couch, 10 years ago

Resolution: fixed
Status: newclosed

Bug was byproduct of fix for #191.

comment:4 by Elaine Meng, 10 years ago

It is not fixed in the current daily build. Did you mean you just fixed it and it is not yet in a build?

comment:5 by Greg Couch, 10 years ago

Yes, just fixed today.

comment:6 by Elaine Meng, 10 years ago

The general case is fixed. However, there must be some interaction with colornames that prevents using "color def" instead of "color define", resulting in an error message, e.g.:

color def blah rgb(200,50,50)
Expected a color or one of 'byatom', 'byelement', 'byhetero', 'bychain', 'bymodel', 'fromatoms', or 'random' or a keyword

comment:7 by Elaine Meng, 10 years ago

Oops nevermind, I forgot it was "color name" now! Sorry for the false alarm.

Note: See TracTickets for help on using tickets.