'gets the argument name used in the command table for a parameter'

def get_arg_name(self, is_param, param):

    if ((self.curr_command in self.cmdtab) and is_param):
        for arg in self.cmdtab[self.curr_command].arguments:
            for name in self.cmdtab[self.curr_command].arguments[arg].options_list:
                if (name == param):
                    return arg
