def add_basic_options(o):
    """Add basic options to the given parser."""
    o.add_argument('-d', '--disable', action='store', dest='disable',
        default=None, help='Comma separated list of error names to ignore.')
    o.add_argument('--no-report-errors', action='store_false', dest=
        'report_errors', default=True, help="Don't report errors.")
    o.add_argument('--protocols', action='store_true', dest='protocols',
        default=False, help=
        'Experimental: solve unknown types to label with structural types.')
    o.add_argument('-V', '--python_version', type=str, action='store', dest
        ='python_version', default=None, help=
        'Python version to emulate ("major.minor", e.g. "2.7")')
    o.add_argument('--strict-import', action='store_true', dest=
        'strict_import', default=False, help=
        'Experimental: Only load submodules that are explicitly imported.')
    o.add_argument('--precise-return', action='store_true', dest=
        'precise_return', default=False, help=
        'Experimental: Infer precise return types even for invalid function calls.'
        )
