Support running directly as a command.