def _set_opt_strings(self, opts):
for opt in opts:<EOL><INDENT>if len(opt) < <NUM_LIT:2>:<EOL><INDENT>raise ArgumentError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % opt,<EOL>self,<EOL>)<EOL><DEDENT>elif len(opt) == <NUM_LIT:2>:<EOL><INDENT>if not (opt[<NUM_LIT:0>] == "<STR_LIT:->" and opt[<NUM_LIT:1>] != "<STR_LIT:->"):<EOL><INDENT>raise ArgumentError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % opt,<EOL>self,<EOL>)<EOL><DEDENT>self._short_opts.append(opt)<EOL><DEDENT>else:<EOL><INDENT>if not (opt[<NUM_LIT:0>:<NUM_LIT:2>] == "<STR_LIT>" and opt[<NUM_LIT:2>] != "<STR_LIT:->"):<EOL><INDENT>raise ArgumentError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % opt,<EOL>self,<EOL>)<EOL><DEDENT>self._long_opts.append(opt)<EOL><DEDENT><DEDENT>
directly from optparse

        might not be necessary as this is passed to argparse later on