I can call my script like this:
python D:\\myscript.py 60
And in the script I can do:
arg = sys.argv[1] foo(arg)
if len(sys.argv) == 1: print('no arguments passed') sys.exit()
This will check if any arguments were passed at all. If there are no arguments, it will exit the script, without running the rest of it.