Lines Matching refs:argv
3614 static int have_cmd(int argc, const char **argv)
3623 memcpy(__argv, argv, sizeof(const char *) * argc);
3809 int cmd_script(int argc, const char **argv)
4014 argc = parse_options_subcommand(argc, argv, options, script_subcommands, script_usage,
4039 if (argc > 1 && strlen(argv[0]) > 2 && strstarts("record", argv[0])) {
4040 rec_script_path = get_script_path(argv[1], RECORD_SUFFIX);
4042 return cmd_record(argc, argv);
4045 if (argc > 1 && strlen(argv[0]) > 2 && strstarts("report", argv[0])) {
4046 rep_script_path = get_script_path(argv[1], REPORT_SUFFIX);
4074 rec_script_path = get_script_path(argv[0], RECORD_SUFFIX);
4075 rep_script_path = get_script_path(argv[0], REPORT_SUFFIX);
4078 script_name = find_script(argv[0]);
4081 argv += 1;
4086 " script -l for available scripts.\n", argv[0]);
4089 if (is_top_script(argv[0])) {
4100 "scripts and options.\n", argv[0]);
4121 if (is_top_script(argv[0])) {
4124 if (have_cmd(argc - rep_args, &argv[rep_args]) != 0) {
4145 __argv[j++] = argv[i];
4167 __argv[j++] = argv[i];
4188 if (have_cmd(argc - 1, &argv[1]) != 0) {
4206 __argv[j++] = argv[i];
4332 err = scripting_ops->start_script(script_name, argc, argv, session);