Update Scopt 3.1, close #1255
Merge pull request #1279 from pdalpra/scopt31

Update Scopt 3.1, close #1255