Tidied up command-line interface, fail gracefully if no program/input is specified.