Call the function `main()` with the script name and the command line argument. When the `main()` finishes, exit with the return code as the program status.

call_main()

Examples

if (FALSE) {
if (sys.nframe() == 0) {
    call_main()
}
}