forked from lix-project/lix
* Ignore options passed to the aterm library.
This commit is contained in:
parent
e2655aa332
commit
ff31324278
|
@ -26,12 +26,15 @@ static void initAndRun(int argc, char * * argv)
|
||||||
while (argc--) args.push_back(*argv++);
|
while (argc--) args.push_back(*argv++);
|
||||||
args.erase(args.begin());
|
args.erase(args.begin());
|
||||||
|
|
||||||
/* Expand compound dash options (i.e., `-qlf' -> `-q -l -f'). */
|
/* Expand compound dash options (i.e., `-qlf' -> `-q -l -f'), and
|
||||||
|
ignore options for the ATerm library. */
|
||||||
for (Strings::iterator it = args.begin();
|
for (Strings::iterator it = args.begin();
|
||||||
it != args.end(); )
|
it != args.end(); )
|
||||||
{
|
{
|
||||||
string arg = *it;
|
string arg = *it;
|
||||||
if (arg.length() > 2 && arg[0] == '-' && arg[1] != '-') {
|
if (string(arg, 0, 4) == "-at-")
|
||||||
|
it = args.erase(it);
|
||||||
|
else if (arg.length() > 2 && arg[0] == '-' && arg[1] != '-') {
|
||||||
for (unsigned int i = 1; i < arg.length(); i++)
|
for (unsigned int i = 1; i < arg.length(); i++)
|
||||||
if (isalpha(arg[i]))
|
if (isalpha(arg[i]))
|
||||||
args.insert(it, (string) "-" + arg[i]);
|
args.insert(it, (string) "-" + arg[i]);
|
||||||
|
|
Loading…
Reference in a new issue