for (int i = 0; i < n; i++) {
final String arg = args[i];
boolean implArg = arg.startsWith(Constants.IMPL_ARGUMENT_PREFIX.toString());
boolean ceylonArg = arg.startsWith(Constants.CEYLON_ARGUMENT_PREFIX.toString());
if (implArg || ceylonArg) {
ArgumentType type = implArg ? ArgumentType.IMPL : ArgumentType.CEYLON;
i = conf.setArgument(arg.substring(1), type, args, i);
} else {
// first argument is the module spec
conf.module = arg;
// the rest are program arguments