Run environment test when not in info mode
Put code to parse arguments into it's own function
Use same style while checking for None value before assigning a value