check command line arguments