Lines Matching refs:cli_state

505   cli_state_t cli_state = cli_init (main_opts, argc - 1, argv + 1);
506 for (int id = cli_consume_option (&cli_state); id != CLI_OPT_END; id = cli_consume_option (&cli_state))
526 if (check_feature (JERRY_FEATURE_MEM_STATS, cli_state.arg))
540 if (check_feature (JERRY_FEATURE_PARSER_DUMP, cli_state.arg))
549 exit_cb = cli_consume_string (&cli_state);
554 if (check_feature (JERRY_FEATURE_REGEXP_DUMP, cli_state.arg))
563 if (check_feature (JERRY_FEATURE_DEBUGGER, cli_state.arg))
571 if (check_feature (JERRY_FEATURE_DEBUGGER, cli_state.arg))
573 debug_port = (uint16_t) cli_consume_int (&cli_state);
579 if (check_feature (JERRY_FEATURE_DEBUGGER, cli_state.arg))
581 debug_channel = (char *) cli_consume_string (&cli_state);
583 argv[0], "Error: invalid value for --debug-channel: ", cli_state.arg);
589 if (check_feature (JERRY_FEATURE_DEBUGGER, cli_state.arg))
591 debug_protocol = (char *) cli_consume_string (&cli_state);
593 argv[0], "Error: invalid value for --debug-protocol: ", cli_state.arg);
599 if (check_feature (JERRY_FEATURE_DEBUGGER, cli_state.arg))
601 debug_serial_config = (char *) cli_consume_string (&cli_state);
607 if (check_feature (JERRY_FEATURE_DEBUGGER, cli_state.arg))
615 if (check_feature (JERRY_FEATURE_SNAPSHOT_EXEC, cli_state.arg))
617 exec_snapshot_file_names[exec_snapshots_count] = cli_consume_string (&cli_state);
622 cli_consume_string (&cli_state);
628 if (check_feature (JERRY_FEATURE_SNAPSHOT_EXEC, cli_state.arg))
630 exec_snapshot_file_names[exec_snapshots_count] = cli_consume_string (&cli_state);
631 exec_snapshot_file_indices[exec_snapshots_count++] = (uint32_t) cli_consume_int (&cli_state);
635 cli_consume_string (&cli_state);
641 long int log_level = cli_consume_int (&cli_state);
643 argv[0], "Error: invalid value for --log-level: ", cli_state.arg);
655 file_names[files_counter++] = cli_consume_string (&cli_state);
660 cli_state.error = "Internal error";
666 if (cli_state.error != NULL)
668 if (cli_state.arg != NULL)
670 jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: %s %s\n", cli_state.error, cli_state.arg);
674 jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: %s\n", cli_state.error);