using System.CommandLine.Binding; using DevDisciples.Json.Tools.CLI.Extensions; namespace DevDisciples.Json.Tools.CLI; public partial class Json2CSharpCommand { public class CommandOptionsBinder : BinderBase { protected override CommandOptions GetBoundValue(BindingContext context) => new CommandOptions { RootClassName = context.ParseResult.GetValueForOption(RootClassNameOption), Namespace = context.ParseResult.GetValueForOption(NamespaceOption), }.WithCommonBindings(context); } }