@@ -28,8 +28,8 @@ func AddToDot(parent *cobra.Command) {
2828 toDotOpts := & spdx.ToDotOptions {}
2929 toDotCmd := & cobra.Command {
3030 PersistentPreRunE : initLogging ,
31- Short : "bom document todot -> dump the structure of the a SPDX document as dotlang." ,
32- Long : `bom document todot -> dump the structure of the a SPDX document as dotlang.
31+ Short : "bom document todot -> dump the SPDX document as dotlang." ,
32+ Long : `bom document todot -> dump the SPDX document as dotlang.
3333
3434This Subcommand translates the graph like structure of an spdx document into dotlang,
3535An abstract grammar used to represent graphs https://graphviz.org/doc/info/lang.html.
@@ -55,7 +55,7 @@ bom will try to add useful information to dotlangs tooltip node attribute.
5555 return fmt .Errorf ("opening doc: %w" , err )
5656 }
5757 if toDotOpts .Find != "" {
58- doc .FilterReverseDependencies (toDotOpts .Find , toDotOpts .Recursion )
58+ doc .FilterReverseDependencies (toDotOpts .Find , toDotOpts .Depth )
5959 }
6060 fmt .Println (doc .ToDot (toDotOpts ))
6161 return nil
@@ -69,7 +69,7 @@ bom will try to add useful information to dotlangs tooltip node attribute.
6969 "Find node in DAG" ,
7070 )
7171 toDotCmd .PersistentFlags ().IntVarP (
72- & toDotOpts .Recursion ,
72+ & toDotOpts .Depth ,
7373 "depth" ,
7474 "d" ,
7575 - 1 ,
@@ -80,7 +80,7 @@ bom will try to add useful information to dotlangs tooltip node attribute.
8080 "subgraph" ,
8181 "s" ,
8282 "" ,
83- "SPXID of the root node for the subgraph" ,
83+ "SPDXID of the root node for the subgraph" ,
8484 )
8585 parent .AddCommand (toDotCmd )
8686}
0 commit comments