* Fix `--from-profile'.

This commit is contained in:
Eelco Dolstra 2008-09-18 09:08:54 +00:00
parent f32fef1b07
commit fa61ee70ee

View file

@ -1407,10 +1407,12 @@ void run(Strings args)
globals.instSource.systemFilter = needArg(i, args, arg); globals.instSource.systemFilter = needArg(i, args, arg);
else { else {
remaining.push_back(arg); remaining.push_back(arg);
if (arg[0] == '-') if (arg[0] == '-') {
opFlags.push_back(arg); opFlags.push_back(arg);
else if (arg == "--from-profile") { /* !!! hack */
opArgs.push_back(arg); if (i != args.end()) opFlags.push_back(*i++);
}
} else opArgs.push_back(arg);
} }
if (oldOp && oldOp != op) if (oldOp && oldOp != op)