Implement -a and -p arguments.

This commit is contained in:
Daniel Jones 2013-03-04 00:06:24 -08:00
parent 034b895b15
commit ceac4466a5
2 changed files with 34 additions and 9 deletions

View file

@ -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
}