[phobos] [D-Programming-Language/phobos] ad226e: added getOpt constraint that checks the options

GitHub via phobos phobos at puremagic.com
Wed Feb 17 22:01:21 PST 2016


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: ad226e92d5f092df233b90fd3fdedb8b71d728eb
      https://github.com/D-Programming-Language/phobos/commit/ad226e92d5f092df233b90fd3fdedb8b71d728eb
  Author: Basile Burg <basile.b at gmx.com>
  Date:   2016-01-19 (Tue, 19 Jan 2016)

  Changed paths:
    M std/getopt.d

  Log Message:
  -----------
  added getOpt constraint that checks the options

on invalid pattern:
- outputs a message that gives a hint about the wrong type
- includes the index of the wrong option

the message doesn't hide the error origin becasue pragma(msg) is used instead or assert(0)


  Commit: 405858d816890edd068e494d4600a3d60b5c1184
      https://github.com/D-Programming-Language/phobos/commit/405858d816890edd068e494d4600a3d60b5c1184
  Author: H. S. Teoh <hsteoh at quickfur.ath.cx>
  Date:   2016-02-17 (Wed, 17 Feb 2016)

  Changed paths:
    M std/getopt.d

  Log Message:
  -----------
  Merge pull request #3859 from BBasile/getopt-checker

Static verification of std.getopt arguments with more helpful error messages


Compare: https://github.com/D-Programming-Language/phobos/compare/32f032fe65fd...405858d81689


More information about the phobos mailing list