Home | History | Annotate | Download | only in cgpt

Lines Matching refs:optarg

82       params.drive_size = strtoull(optarg, &e, 0);
83 if (!*optarg || (e && *e))
85 Error("invalid argument to -%c: \"%s\"\n", c, optarg);
100 params.label = optarg;
104 if (CGPT_OK != SupportedType(optarg, &params.type_guid) &&
105 CGPT_OK != StrToGuid(optarg, &params.type_guid)) {
106 Error("invalid argument to -%c: %s\n", c, optarg);
112 if (CGPT_OK != StrToGuid(optarg, &params.unique_guid)) {
113 Error("invalid argument to -%c: %s\n", c, optarg);
118 params.matchbuf = ReadFile(optarg, &params.matchlen);
120 Error("Unable to read from %s\n", optarg);
132 params.matchoffset = strtoull(optarg, &e, 0);
133 if (!*optarg || (e && *e)) {
134 Error("invalid argument to -%c: \"%s\"\n", c, optarg);