@cli.command()<EOL>@click.argument("<STR_LIT:path>", type=click.Path(resolve_path=False))<EOL>@click.argument("<STR_LIT>", nargs=-<NUM_LIT:2>, required=True)<EOL>@click.option(<EOL>"<STR_LIT>", "<STR_LIT>", help="<STR_LIT>"<EOL>)<EOL>@click.option("<STR_LIT>", "<STR_LIT>", help="<STR_LIT>")<EOL>@click.option(<EOL>"<STR_LIT>", "<STR_LIT>", default=True, help="<STR_LIT>"<EOL>)<EOL>@click.pass_context<EOL>def graph(ctx, path, metrics, output, x_axis, changes):
config = ctx.obj["<STR_LIT>"]<EOL>if not exists(config):<EOL><INDENT>handle_no_cache(ctx)<EOL><DEDENT>from wily.commands.graph import graph<EOL>logger.debug(f"<STR_LIT>")<EOL>graph(<EOL>config=config,<EOL>path=path,<EOL>metrics=metrics,<EOL>output=output,<EOL>x_axis=x_axis,<EOL>changes=changes,<EOL>)<EOL>
Graph a specific metric for a given file, if a path is given, all files within path will be graphed.

Some common examples:

Graph all .py files within src/ for the raw.loc metric

    $ wily graph src/ raw.loc

Graph test.py against raw.loc and cyclomatic.complexity metrics

    $ wily graph src/test.py raw.loc cyclomatic.complexity

Graph test.py against raw.loc and raw.sloc on the x-axis

    $ wily graph src/test.py raw.loc --x-axis raw.sloc