Actually call main() when invoked from cmd line.