def addPlatform(parser):
    """
    Add option to specify a platform.
    """
    if hasattr(parser, 'add_option'):
        from .options_old import addPlatform
        return addPlatform(parser)
    parser.add_argument('-c', '--platform', help=
        'runtime platform. With "best", the most appropriate is chosen [default: %(default)s]'
        , default=None)
    parser.add_argument('--force-platform', action='store_true', help=
        'ignore platform compatibility check', default=False)
    return parser
