improve command line parsing of option flags

- using gemline in terminal now supports passing various flags
Merge branch 'cl_option_parsing'