| 6716 | } |
| 6717 | |
| 6718 | static void parse_auto_answer(int argc, char **argv) { |
| 6719 | for (int i = 0; i < argc; i++) { |
| 6720 | if (strcmp(argv[i], "-y") == 0 || strcmp(argv[i], "--yes") == 0) { |
| 6721 | g_auto_answer = AUTO_YES; |
| 6722 | } |
| 6723 | if (strcmp(argv[i], "-n") == 0 || strcmp(argv[i], "--no") == 0) { |
| 6724 | g_auto_answer = AUTO_NO; |
| 6725 | } |
| 6726 | } |
| 6727 | } |
| 6728 | |
| 6729 | static bool prompt_yn(const char *question) { |
| 6730 | if (g_auto_answer == AUTO_YES) { |
no outgoing calls
no test coverage detected