refactor CommandLine to it's own class, OO, called by actual shell script