move cmd param setup for build into own method to avoid duplication
Merge pull request #1637 from maul-esel/options-duplication

move cmd param setup for build into own method