def match_shortname(self, name, filled_args=None):
filled_count = <NUM_LIT:0><EOL>if filled_args is not None:<EOL><INDENT>filled_count = len(filled_args)<EOL><DEDENT>possible = [x for x in self.arg_names[filled_count:] if x.startswith(name)]<EOL>if len(possible) == <NUM_LIT:0>:<EOL><INDENT>raise ArgumentError("<STR_LIT>", short_name=name, parameters=self.arg_names)<EOL><DEDENT>elif len(possible) > <NUM_LIT:1>:<EOL><INDENT>raise ArgumentError("<STR_LIT>", short_name=name, possible_matches=possible)<EOL><DEDENT>return possible[<NUM_LIT:0>]<EOL>
Try to convert a prefix into a parameter name.

        If the result could be ambiguous or there is no matching
        parameter, throw an ArgumentError

        Args:
            name (str): A prefix for a parameter name
            filled_args (list): A list of filled positional arguments that will be
                removed from consideration.

        Returns:
            str: The full matching parameter name