Lines Matching refs:optarg
887 optarg ? optarg : ""); in main()
894 if (optarg && optarg[0]) in main()
895 arch_name.assign(optarg); in main()
899 if (optarg && optarg[0]) in main()
901 if (isdigit(optarg[0])) in main()
904 attach_pid = strtoul(optarg, &end, 0); in main()
907 RNBLogSTDERR ("error: invalid pid option '%s'\n", optarg); in main()
913 attach_pid_name = optarg; in main()
921 if (optarg && optarg[0]) in main()
923 waitfor_pid_name = optarg; in main()
930 if (optarg && optarg[0]) in main()
933 waitfor_interval = strtoul(optarg, &end, 0); in main()
936 … RNBLogSTDERR ("error: invalid waitfor-interval option value '%s'.\n", optarg); in main()
944 if (optarg && optarg[0]) in main()
947 waitfor_duration = strtoul(optarg, &end, 0); in main()
950 … RNBLogSTDERR ("error: invalid waitfor-duration option value '%s'.\n", optarg); in main()
957 if (optarg && optarg[0]) in main()
958 working_dir.assign(optarg); in main()
962 if (optarg && optarg[0]) in main()
964 if (strcasecmp(optarg, "auto") == 0) in main()
966 else if (strcasestr(optarg, "posix") == optarg) in main()
968 else if (strcasestr(optarg, "fork") == optarg) in main()
971 else if (strcasestr(optarg, "spring") == optarg) in main()
976 … RNBLogSTDERR ("error: invalid TYPE for the --launch=TYPE (-x TYPE) option: '%s'\n", optarg); in main()
990 if (optarg && optarg[0]) in main()
992 if (strcasecmp(optarg, "stdout") == 0) in main()
994 else if (strcasecmp(optarg, "stderr") == 0) in main()
998 log_file = fopen(optarg, "w"); in main()
1006 …BLogSTDERR ("Failed to open log file '%s' for writing: errno = %i (%s)", optarg, errno, errno_str … in main()
1012 if (optarg && optarg[0]) in main()
1013 log_flags = strtoul(optarg, NULL, 0); in main()
1038 ctx.GetSTDIN().assign(optarg); in main()
1039 ctx.GetSTDOUT().assign(optarg); in main()
1040 ctx.GetSTDERR().assign(optarg); in main()
1044 ctx.GetSTDIN().assign(optarg); in main()
1048 ctx.GetSTDOUT().assign(optarg); in main()
1052 ctx.GetSTDERR().assign(optarg); in main()
1082 unix_socket_name.assign (optarg); in main()