if (args.size() < 1) {
_SERR("Directory path is missing");
}
+ std::string dir;
while (it != args.end()) {
- const std::string dir = std::string(*it);
- int ret = createNIUnderDirs(dir, opt);
- if (ret != NI_ERROR_NONE) {
- _SERR("Failed to generate NI directory");
- break;
+ if (!dir.empty()) {
+ dir += std::string(":");
}
+ dir += std::string(*it);
it = args.erase(it);
}
+ if (createNIUnderDirs(dir, opt) != NI_ERROR_NONE) {
+ _SERR("Failed to generate NI directory");
+ }
}
//sh-3.2# dotnettool --ni-reset-system
else if (cmd == "--ni-reset-system") {