No check on first command line argument being an option - Redmine #2153
All GROMACS programs do not check if the first argument after the binary
name starts with a dash. Any non-dash arguments are ignored until one
with a dash is encountered.
This is especially an issue when cut-and-pasting from PDFs where all
arguments can be ignored.
(from redmine: issue id 2153, created on 2017-04-12 by berkhess, closed on 2018-01-10)
- Changesets:
- Revision 5577aadf by Mark Abraham on 2018-01-10T08:47:19Z:
Handle erroneous command line args better
Some gmx modules need to be able to accept non-option arguments, and
some should not. Introduced enough functionality to support such
behaviour, while giving useful error messages in cases where the
command line is merely missing hyphens (which can happen e.g. when
people copy-paste from inconveniently built PDF files for tutorials).
Increased test coverage of relevant cases.
Removed some useless command-line argument strings from test cases
that never needed them.
Also tested some behaviours of handling string options, and renamed
some test input strings to reflect the intent.
Fixes #2153
Change-Id: Icec02ea86a57a8b129a621121518036b9f032078