handle the case when there is only shortname or only longname for a parameter