def _view_coloring_setup_parser(parser):
    """
    Set up the openmdao subparser for the 'openmdao view_coloring' command.

    Parameters
    ----------
    parser : argparse subparser
        The parser we're adding options to.
    """
    parser.add_argument('file', nargs=1, help='coloring file.')
    parser.add_argument('--view', action='store_true', dest='show_sparsity',
        help='Display a visualization of the colored jacobian.')
    parser.add_argument('--textview', action='store_true', dest=
        'show_sparsity_text', help=
        'Display a text-based visualization of the colored jacobian.')
    parser.add_argument('-s', action='store_true', dest='subjac_sparsity',
        help='Display sparsity patterns for subjacs.')
    parser.add_argument('-m', action='store_true', dest='show_meta', help=
        'Display coloring metadata.')
    parser.add_argument('-v', '--var', action='store', dest='color_var',
        help=
        'show the coloring (number of fwd and rev solves needed) for a particular variable.'
        )
