The logic to interpret the arguments will be part of your script, I usually use getopt though ...
Code:
import getopt
def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "s:t:h", ["source=",target=", "help"])
except getopt.GetoptError, err:
print str(err)
usage()
sys.exit(2)
for opt, arg in opts:
if opt in ("-s", "--source"):
source = arg
elif opt in ("-t", "--target"):
target = arg
elif opt == '-h':
usage()
sys.exit()
else:
assert False, "Invalid option"
# put arg validation logic here
cheers