Lines Matching refs:option
59 const struct option LONG_OPTIONS[] = {
224 ErrCode FocusTestFlow::SetInputPercent(const int option)
227 auto it = OPTION_INPUT_PERCENT.find(option);
240 // try the option argument string convert float.
241 shellcommand_.ResultReceiverAppend("error: option '");
242 shellcommand_.ResultReceiverAppend(string((char *)(&option)));
247 // check valid of the option argument
259 ErrCode FocusTestFlow::SetBlackWhiteSheet(const int option)
262 if (option == 'b') {
265 } else if (option == 'p') {
267 } else if (option == 'e') {
270 result = CheckArgument(option);
272 } else if (option == 'E') {
275 result = CheckArgument(option);
277 } else if (option == 'd') {
279 } else if (option == 'Y') {
281 } else if (option == 'y') {
287 ErrCode FocusTestFlow::SetRunningParam(const int option)
290 if (option == 'c' || option == 'T') {
291 result = CheckArgument(option);
292 } else if (option == 'i') {
295 } else if (option == 's') {
298 } else if (option == 'n') {
300 } else if (option == 'f') {
306 ErrCode FocusTestFlow::SetRunningIndicator(const int option)
309 if (option == 'h') {
313 } else if (option == 'I') {
420 ErrCode FocusTestFlow::HandleNormalOption(const int option)
423 if (option == 't' || option == 'm' || option == 'S' || option == 'k' || option == 'H' ||
424 option == 'a' || option == 'r' || option == 'C') {
425 result = SetInputPercent(option);
427 result = SetBlackWhiteSheet(option);
431 result = SetRunningParam(option);
435 result = SetRunningIndicator(option);
441 ErrCode FocusTestFlow::CheckArgument(const int option)
444 switch (option) {
469 const struct option *FocusTestFlow::GetOptionArguments(std::string &shortOpts)
497 // error: option 'x' requires a value.
498 shellcommand_.ResultReceiverAppend("error: option '-");
508 // 'wukong focus' with an unknown option: wukong focus -x
510 "'wukong focus' with an unknown option, please reference help information:\n");