some refactoring
moved command line option definition in a separate file