| 6660 | } |
| 6661 | |
| 6662 | static void parse_auto_answer(int argc, char **argv) { |
| 6663 | for (int i = 0; i < argc; i++) { |
| 6664 | if (strcmp(argv[i], "-y") == 0 || strcmp(argv[i], "--yes") == 0) { |
| 6665 | g_auto_answer = AUTO_YES; |
| 6666 | } |
| 6667 | if (strcmp(argv[i], "-n") == 0 || strcmp(argv[i], "--no") == 0) { |
| 6668 | g_auto_answer = AUTO_NO; |
| 6669 | } |
| 6670 | } |
| 6671 | } |
| 6672 | |
| 6673 | static bool prompt_yn(const char *question) { |
| 6674 | if (g_auto_answer == AUTO_YES) { |
no outgoing calls
no test coverage detected