mes: getopt-long: fix multi-opt and unclumping.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 2 Jan 2018 06:05:41 +0000 (07:05 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 2 Jan 2018 06:05:41 +0000 (07:05 +0100)
commitb354da6f02e2e8f645869924390803b58c7eb6b8
tree614de31d8f0654ff00122c34b1cef1038fc7df78
parent81fdd4c35fc87fb9cbde04c8cd1e12a4fa77bb0b
mes: getopt-long: fix multi-opt and unclumping.

* module/mes/getopt-long.scm (remove-if-not): Remove.
  (option-spec): Add value field.  Update users.
  (expand-clumped-singles): Simplify, fix.
  (process-options): To get an option's value, use value instead of
  value-policy.  Fixes multi-opt.
* tests/getopt-long.test: New file.
* make.scm (mes-tests): Add it.
* check.sh (tests): Add it.
* tests/getopt-long.test-guile: New symlink.
check.sh
guile/mescc.scm
make.scm
module/mes/getopt-long.scm
scripts/mescc.mes
tests/base.test-guile
tests/getopt-long.test [new file with mode: 0755]
tests/getopt-long.test-guile [new symlink]