| 7845 | } |
| 7846 | |
| 7847 | static void parse_auto_answer(int argc, char **argv) { |
| 7848 | for (int i = 0; i < argc; i++) { |
| 7849 | if (strcmp(argv[i], "-y") == 0 || strcmp(argv[i], "--yes") == 0) { |
| 7850 | g_auto_answer = AUTO_YES; |
| 7851 | } |
| 7852 | if (strcmp(argv[i], "-n") == 0 || strcmp(argv[i], "--no") == 0) { |
| 7853 | g_auto_answer = AUTO_NO; |
| 7854 | } |
| 7855 | } |
| 7856 | } |
| 7857 | |
| 7858 | static bool prompt_yn(const char *question) { |
| 7859 | if (g_auto_answer == AUTO_YES) { |
no outgoing calls
no test coverage detected