| 6967 | } |
| 6968 | |
| 6969 | static void parse_auto_answer(int argc, char **argv) { |
| 6970 | for (int i = 0; i < argc; i++) { |
| 6971 | if (strcmp(argv[i], "-y") == 0 || strcmp(argv[i], "--yes") == 0) { |
| 6972 | g_auto_answer = AUTO_YES; |
| 6973 | } |
| 6974 | if (strcmp(argv[i], "-n") == 0 || strcmp(argv[i], "--no") == 0) { |
| 6975 | g_auto_answer = AUTO_NO; |
| 6976 | } |
| 6977 | } |
| 6978 | } |
| 6979 | |
| 6980 | static bool prompt_yn(const char *question) { |
| 6981 | if (g_auto_answer == AUTO_YES) { |
no outgoing calls
no test coverage detected