internal void ParseCommandArguments()

in src/Amazon.ECS.Tools/Commands/CommandProperties.cs [318:341]


        internal void ParseCommandArguments(CommandOptions values)
        {
            Tuple<CommandOption, CommandOptionValue> tuple;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_SKIP_IMAGE_PUSH.Switch)) != null)
                this.SkipImagePush = tuple.Item2.BoolValue;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ECS_SERVICE.Switch)) != null)
                this.ECSService = tuple.Item2.StringValue;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ECS_DESIRED_COUNT.Switch)) != null)
                this.DesiredCount = tuple.Item2.IntValue;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_DEPLOYMENT_MINIMUM_HEALTHY_PERCENT.Switch)) != null)
                this.DeploymentMinimumHealthyPercent = tuple.Item2.IntValue;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_DEPLOYMENT_MAXIMUM_PERCENT.Switch)) != null)
                this.DeploymentMaximumPercent = tuple.Item2.IntValue;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ELB_SERVICE_ROLE.Switch)) != null)
                this.ELBServiceRole = tuple.Item2.StringValue;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ELB_TARGET_GROUP_ARN.Switch)) != null)
                this.ELBTargetGroup = tuple.Item2.StringValue;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ELB_CONTAINER_PORT.Switch)) != null)
                this.ELBContainerPort = tuple.Item2.IntValue;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_PLACEMENT_CONSTRAINTS.Switch)) != null)
                this.PlacementConstraints = tuple.Item2.StringValues;
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_PLACEMENT_STRATEGY.Switch)) != null)
                this.PlacementStrategy = tuple.Item2.StringValues;
        }