ddlist1.gms : Test the double dash option check

Description

Contributor: Alex

  the --one and --two are already touched
  --three and --four are added to the ddlist


Small Model of Type : GAMS


Category : GAMS Test library


Main file : ddlist1.gms

$title 'Test the double dash option check' (DDLIST1,SEQ=177)

$onText
Contributor: Alex
$offText

$onEcho > temp.gms
* the --one and --two are already touched
* --three and --four are added to the ddlist
display '%two%';
$if NOT set one $set one default
$setDDList three four
$offEcho

$call =gams temp.gms --two=twovalue --four=something lo=%GAMS.lo%
$if errorlevel 1 $abort should have worked

$call gams temp.gms --five="bad double dash" lo=%GAMS.lo% > %system.nullfile%
$if errorlevel 1 $terminate
$abort should not have worked