extract the command running process
move feature parsing logic out
fixup command
finally extract option parsing logic
Merge pull request #2 from JonRowe/refactor_cmdline

Refactor cmdline