Extension completion for FileNameOption.
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 8 Jul 2012 05:27:43 +0000 (08:27 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Sun, 8 Jul 2012 05:27:43 +0000 (08:27 +0300)
commit442259a3dde8cf4a9a324064a61830dc085b5839
tree98a1357b1d9e5cdab1f69662a3203c07604c8815
parentce4127f28fab2812df94c0d1ccb665727ef4a127
Extension completion for FileNameOption.

- Make FileNameOption to complete extensions for input files, like the
  old file options did.
- Add descriptions for all file name options to improve the help output.
- Make defaultValueIfSet() really appear in the help output: it worked
  only in the case the option value was not stored.
- Adjust the reference for command-line help tests to match the new
  output.

Part of #642.

Change-Id: I4a749e3e82a42a6e64e0a78c91120f96a00381b9
15 files changed:
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/commandline/tests/cmdlinehelpwriter.cpp
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesLongFileOptions.xml
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesOptionTypes.xml
src/gromacs/options/filenameoption.cpp
src/gromacs/options/optionfiletype.h
src/gromacs/options/optionstoragetemplate.h
src/gromacs/options/tests/CMakeLists.txt
src/gromacs/options/tests/filenameoption.cpp [new file with mode: 0644]
src/gromacs/trajectoryanalysis/modules/angle.cpp
src/gromacs/trajectoryanalysis/modules/distance.cpp
src/gromacs/trajectoryanalysis/modules/select.cpp
src/gromacs/trajectoryanalysis/runnercommon.cpp
src/gromacs/utility/file.cpp
src/gromacs/utility/file.h