@@ -28,8 +28,8 @@ func AddToDot(parent *cobra.Command) {
28
28
toDotOpts := & spdx.ToDotOptions {}
29
29
toDotCmd := & cobra.Command {
30
30
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.
33
33
34
34
This Subcommand translates the graph like structure of an spdx document into dotlang,
35
35
An 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.
55
55
return fmt .Errorf ("opening doc: %w" , err )
56
56
}
57
57
if toDotOpts .Find != "" {
58
- doc .FilterReverseDependencies (toDotOpts .Find , toDotOpts .Recursion )
58
+ doc .FilterReverseDependencies (toDotOpts .Find , toDotOpts .Depth )
59
59
}
60
60
fmt .Println (doc .ToDot (toDotOpts ))
61
61
return nil
@@ -69,7 +69,7 @@ bom will try to add useful information to dotlangs tooltip node attribute.
69
69
"Find node in DAG" ,
70
70
)
71
71
toDotCmd .PersistentFlags ().IntVarP (
72
- & toDotOpts .Recursion ,
72
+ & toDotOpts .Depth ,
73
73
"depth" ,
74
74
"d" ,
75
75
- 1 ,
@@ -80,7 +80,7 @@ bom will try to add useful information to dotlangs tooltip node attribute.
80
80
"subgraph" ,
81
81
"s" ,
82
82
"" ,
83
- "SPXID of the root node for the subgraph" ,
83
+ "SPDXID of the root node for the subgraph" ,
84
84
)
85
85
parent .AddCommand (toDotCmd )
86
86
}
0 commit comments