use short name for -sname and longname of -name in extended script
Merge pull request #261 from tsloughter/name_type

use short name for -sname and longname of -name in extended script