Parsing arguments depending on the operation, closes #6