Added profile-dir to common known options. Added function to validate ar...

...guments passed to command line and break the execution in case the argument is not part of known options or if the argument requires value, but the user had not passed one. Change options to use function from common helpers to validate and parse yargs arguments.