mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-30 11:10:30 +00:00
!341 option -p 无对应value时,会将后边连接的option当作value,提示option错误
Merge pull request !341 from WenqiangZhao/master
This commit is contained in:
commit
42dd9b3ecc
@ -121,8 +121,8 @@ bool GetOptionValue(argsVector &args, std::string optionName, T &value)
|
||||
return true;
|
||||
} else {
|
||||
// have value but convert failed.
|
||||
printf("incorrect option value '%s'. View the usage with the --help option.\n",
|
||||
(*it).c_str());
|
||||
printf("incorrect option value '%s' for option '%s'. View the usage with the --help option.\n",
|
||||
(*it).c_str(), optionName.c_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user