Make FileNameOption behave more like old filenm parser
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 5 Feb 2014 19:59:17 +0000 (21:59 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Sun, 9 Feb 2014 12:39:40 +0000 (13:39 +0100)
commite54b9c33c7c2f01cd5d64d03a09ad3c81f5b3001
tree3c24c688bc5424460831c20ea64c68170c274844
parentbb2571099ccc537ef05348ff68333d4237a05253
Make FileNameOption behave more like old filenm parser

If a required file name option is provided without a value, then it is a
no-op.  Previously, FileNameOption raised an exception for such usage.
Add a test to cover this case.

Related to #642.

Change-Id: I89d6cc8ee5d5bf2915bb6841317b402ade00b99b
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesLongFileOptions.xml
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesOptionTypes.xml
src/gromacs/options/filenameoption.cpp
src/gromacs/options/filenameoption.h
src/gromacs/options/tests/filenameoption.cpp