True if the first non-whitespace byte of s is '{' (raw-JSON detection). */
| 324 | |
| 325 | /* True if the first non-whitespace byte of s is '{' (raw-JSON detection). */ |
| 326 | static bool cli_first_nonspace_is_brace(const char *s) { |
| 327 | while (*s == ' ' || *s == '\t' || *s == '\n' || *s == '\r') { |
| 328 | s++; |
| 329 | } |
| 330 | return *s == '{'; |
| 331 | } |
| 332 | |
| 333 | static int run_cli(int argc, char **argv) { |
| 334 | if (argc < MAIN_MIN_ARGC) { |