Check cmdline arguments

add a checking function in utils and apply it in two_alt_choice.py