main routine parses args and does IfToCase refactoring.