Fix an error: prevented code from doing what was intended
Merge pull request #2237 from ussuri/improve-dev-flag-parsing

Fix an error: prevented code from doing what was intended