Implement -a and -p arguments.
This commit is contained in:
parent
034b895b15
commit
ceac4466a5
2 changed files with 34 additions and 9 deletions
4
graph.go
4
graph.go
|
|
@ -110,7 +110,7 @@ func applyrules(rs *ruleSet, g *graph, target string, rulecnt []int) *node {
|
|||
if ok {
|
||||
for ki := range ks {
|
||||
k := ks[ki]
|
||||
if rulecnt[k] > max_rule_cnt {
|
||||
if rulecnt[k] > maxRuleCnt {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
@ -140,7 +140,7 @@ func applyrules(rs *ruleSet, g *graph, target string, rulecnt []int) *node {
|
|||
|
||||
// find applicable metarules
|
||||
for k := range rs.rules {
|
||||
if rulecnt[k] > max_rule_cnt {
|
||||
if rulecnt[k] > maxRuleCnt {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue