| 2922 | } |
| 2923 | |
| 2924 | static void parse_auto_answer(int argc, char **argv) { |
| 2925 | for (int i = 0; i < argc; i++) { |
| 2926 | if (strcmp(argv[i], "-y") == 0 || strcmp(argv[i], "--yes") == 0) { |
| 2927 | g_auto_answer = AUTO_YES; |
| 2928 | } |
| 2929 | if (strcmp(argv[i], "-n") == 0 || strcmp(argv[i], "--no") == 0) { |
| 2930 | g_auto_answer = AUTO_NO; |
| 2931 | } |
| 2932 | } |
| 2933 | } |
| 2934 | |
| 2935 | static bool prompt_yn(const char *question) { |
| 2936 | if (g_auto_answer == AUTO_YES) { |
no outgoing calls
no test coverage detected