def _n2_setup_parser(parser):
    """
    Set up the openmdao subparser for the 'openmdao n2' command.

    Parameters
    ----------
    parser : argparse subparser
        The parser we're adding options to.
    """
    parser.add_argument('file', nargs=1, help=
        'Python script or recording containing the model.')
    parser.add_argument('-o', default='n2.html', action='store', dest=
        'outfile', help='html output file.')
    parser.add_argument('--no_browser', action='store_true', dest=
        'no_browser', help="don't display in a browser.")
    parser.add_argument('--embed', action='store_true', dest='embeddable',
        help='create embeddable version.')
    parser.add_argument('--title', default=None, action='store', dest=
        'title', help='diagram title.')
    parser.add_argument('--use_declare_partial_info', action='store_true',
        dest='use_declare_partial_info', help=
        'use declare partial info for internal connectivity.')
