"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveWorkflowCommandOptionValueKind = resolveWorkflowCommandOptionValueKind;
const issue_override_option_registry_1 = require("./issue-override-option-registry");
const workflow_command_option_specs_1 = require("./workflow-command-option-specs");
function resolveWorkflowCommandOptionValueKind(token) {
    const topLevelValueKind = (0, workflow_command_option_specs_1.resolveWorkflowCommandOptionValueKind)(token);
    if (topLevelValueKind !== undefined) {
        return topLevelValueKind;
    }
    if (!token.startsWith("--")) {
        return undefined;
    }
    const overrideFlag = token.slice(2);
    if (!issue_override_option_registry_1.ISSUE_OVERRIDE_OPTION_REGISTRY_BY_FLAG.has(overrideFlag)) {
        return undefined;
    }
    return "required";
}
