Adding --rules argument

I saw this was an open issue so implemented some simple rules.