Check command line arguments before initializing session