Lines Matching refs:option

59 const struct option LONG_OPTIONS[] = {
235 ErrCode RandomTestFlow::SetInputPercent(const int option)
238 auto it = OPTION_INPUT_PERCENT.find(option);
251 // try the option argument string convert float.
252 shellcommand_.ResultReceiverAppend("error: option '");
253 shellcommand_.ResultReceiverAppend(string((char *)(&option)));
258 // check valid of the option argument
270 ErrCode RandomTestFlow::SetBlackWhiteSheet(const int option)
273 if (option == 'b') {
276 } else if (option == 'p') {
278 } else if (option == 'e') {
281 result = CheckArgument(option);
283 } else if (option == 'E') {
286 result = CheckArgument(option);
288 } else if (option == 'd') {
290 } else if (option == 'Y') {
292 } else if (option == 'y') {
294 } else if (option == 'U') {
297 } else if (option == 'x') {
304 ErrCode RandomTestFlow::SetRunningParam(const int option)
307 if (option == 'c' || option == 'T') {
308 result = CheckArgument(option);
309 } else if (option == 'i') {
318 } else if (option == 's') {
325 ErrCode RandomTestFlow::SetRunningIndicator(const int option)
328 if (option == 'h') {
332 } else if (option == 'I') {
334 } else if (option == 'B') {
487 ErrCode RandomTestFlow::HandleNormalOption(const int option)
490 if (option == 't' || option == 'm' || option == 'S' || option == 'k' || option == 'a' ||
491 option == 'r' || option == 'C' || option == 'H') {
492 result = SetInputPercent(option);
494 result = SetBlackWhiteSheet(option);
498 result = SetRunningParam(option);
502 result = SetRunningIndicator(option);
509 ErrCode RandomTestFlow::CheckArgument(const int option)
512 switch (option) {
537 const struct option *RandomTestFlow::GetOptionArguments(std::string &shortOpts)
568 // error: option 'x' requires a value.
569 shellcommand_.ResultReceiverAppend("error: option '-");
579 // 'wukong exec' with an unknown option: wukong exec -x
581 "'wukong exec' with an unknown option, please reference help information:\n");