the command can now differentiate between long and short form of options and run them correctly
add a TODO subject
refactoring and documentation