version 1.105, 2017/01/15 20:48:41 |
version 1.106, 2017/01/15 20:50:34 |
|
|
/* Parse option name and index. */ |
/* Parse option name and index. */ |
name = options_match(args->argv[0], &idx, &ambiguous); |
name = options_match(args->argv[0], &idx, &ambiguous); |
if (name == NULL) { |
if (name == NULL) { |
|
if (args_has(args, 'q')) |
|
return (CMD_RETURN_NORMAL); |
if (ambiguous) |
if (ambiguous) |
cmdq_error(item, "ambiguous option: %s", args->argv[0]); |
cmdq_error(item, "ambiguous option: %s", args->argv[0]); |
else |
else |
|
|
} |
} |
} |
} |
if (scope == OPTIONS_TABLE_NONE) { |
if (scope == OPTIONS_TABLE_NONE) { |
|
if (args_has(args, 'q')) |
|
return (CMD_RETURN_NORMAL); |
cmdq_error(item, "%s", cause); |
cmdq_error(item, "%s", cause); |
free(cause); |
free(cause); |
return (CMD_RETURN_ERROR); |
return (CMD_RETURN_ERROR); |