added CLI mode check back in.
Merge pull request #98 from ucsflibtopfstedt/master

fixed regression.