import sys

#Will give the list of the arguments, first being the program name itself. They are stored in the sys module.
print (sys.argv)
sys.exit(1)

#echo %ERRORLEVEL% - TO get the exit status in windows.