Disable warnings if --no-warnings is passed or they are disabled in config file

It seems like this was broken since b38317d5 where optparse was replaced with
argparse.
Merge pull request #457 from mstock/bugfix/no-warnings

Disable warnings if --no-warnings is passed or they are disabled in config file