Parse arguments to main function.
Parse and emit basic elements with build and test script support.