Lines Matching defs:packArgv
151 static int ParsePackArgs(HnpPackArgv *packArgv, HnpPackInfo *packInfo)
155 if (packArgv->source == NULL) {
159 if (GetRealPath(packArgv->source, packInfo->source) != 0) {
160 HNP_LOGE("source dir path=%{public}s is invalid.", packArgv->source);
163 if (packArgv->output == NULL) {
164 packArgv->output = ".";
167 if (GetRealPath(packArgv->output, packInfo->output) != 0) {
168 HNP_LOGE("output dir path=%{public}s is invalid.", packArgv->output);
179 if ((packArgv->name == NULL) || (packArgv->version == NULL)) {
183 if (strcpy_s(packInfo->cfgInfo.name, MAX_FILE_PATH_LEN, packArgv->name) != EOK) {
187 if (strcpy_s(packInfo->cfgInfo.version, HNP_VERSION_LEN, packArgv->version) != EOK) {
204 HnpPackArgv packArgv = {0};
214 packArgv.source = optarg;
217 packArgv.output = optarg;
220 packArgv.name = optarg;
223 packArgv.version = optarg;
231 int ret = ParsePackArgs(&packArgv, &packInfo);