| 6803 | } |
| 6804 | |
| 6805 | static void parse_auto_answer(int argc, char **argv) { |
| 6806 | for (int i = 0; i < argc; i++) { |
| 6807 | if (strcmp(argv[i], "-y") == 0 || strcmp(argv[i], "--yes") == 0) { |
| 6808 | g_auto_answer = AUTO_YES; |
| 6809 | } |
| 6810 | if (strcmp(argv[i], "-n") == 0 || strcmp(argv[i], "--no") == 0) { |
| 6811 | g_auto_answer = AUTO_NO; |
| 6812 | } |
| 6813 | } |
| 6814 | } |
| 6815 | |
| 6816 | static bool prompt_yn(const char *question) { |
| 6817 | if (g_auto_answer == AUTO_YES) { |
no outgoing calls
no test coverage detected