Ensure argument specification is valid when constructing commands