public static void Main(string[] args) { var stuffDoer = new StuffDoer(); if (args != null && args.Length > 0) { stuffDoer.DoTheStuff(); } }