| 6824 | } |
| 6825 | |
| 6826 | static void parse_auto_answer(int argc, char **argv) { |
| 6827 | for (int i = 0; i < argc; i++) { |
| 6828 | if (strcmp(argv[i], "-y") == 0 || strcmp(argv[i], "--yes") == 0) { |
| 6829 | g_auto_answer = AUTO_YES; |
| 6830 | } |
| 6831 | if (strcmp(argv[i], "-n") == 0 || strcmp(argv[i], "--no") == 0) { |
| 6832 | g_auto_answer = AUTO_NO; |
| 6833 | } |
| 6834 | } |
| 6835 | } |
| 6836 | |
| 6837 | static bool prompt_yn(const char *question) { |
| 6838 | if (g_auto_answer == AUTO_YES) { |
no outgoing calls
no test coverage detected