def _parse_positional_arguments(self, argv):
for posarg in self.positional_args:<EOL><INDENT>posarg.parse(argv)<EOL><DEDENT>if argv:<EOL><INDENT>if None in [p.nargs for p in self.positional_args]:<EOL><INDENT>msg = '<STR_LIT>'<EOL>plural_s = len(argv) > <NUM_LIT:1> and '<STR_LIT:s>' or '<STR_LIT>'<EOL>raise BadNumberOfArguments(message=msg % (len(argv), plural_s))<EOL><DEDENT>msg = '<STR_LIT>'<EOL>required = len([p.nargs for p in self.positional_args])<EOL>raise BadNumberOfArguments(message=msg % (required, required + len(argv)))<EOL><DEDENT>
Parse the positional arguments part of an argument list.
        argv <list str>:
            List of arguments. Will be altered.