Add support for a custom arguments list when running main.