'Parse command line options.
@param argv: Command line arguments.
@type argv: L{list}
@return: The parsed options.
@rtype: L{TwistOptions}'

@staticmethod
def options(argv):

    options = TwistOptions()
    try:
        options.parseOptions(argv[1:])
    except UsageError as e:
        exit(ExitStatus.EX_USAGE, 'Error:    {}\n\n{}'.format(e, options))
    return options
