cmd/lncli: rename --draw to --render for describegraph

This commit is contained in:
Olaoluwa Osuntokun
2017-01-29 15:38:04 -08:00
parent 1ee4c661bc
commit 07f8dab560
2 changed files with 4 additions and 3 deletions

View File

@@ -803,7 +803,7 @@ var DescribeGraphCommand = cli.Command{
Usage: "describegraph",
Flags: []cli.Flag{
cli.BoolFlag{
Name: "draw",
Name: "render",
Usage: "If true, then an image of graph will be generated and displayed. The generated image is stored within the current directory with a file name of 'graph.svg'",
},
},
@@ -823,7 +823,7 @@ func describeGraph(ctx *cli.Context) error {
// If the draw flag is on, then we'll use the 'dot' command to create a
// visualization of the graph itself.
if ctx.Bool("draw") {
if ctx.Bool("render") {
return drawChannelGraph(graph)
}