From 71907a2ddc70b39503e0aa04b0dfffaa885faeba Mon Sep 17 00:00:00 2001 From: Syping Date: Sat, 25 Oct 2025 02:48:54 +0200 Subject: [PATCH] simplify dataType completion code --- Program.cs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Program.cs b/Program.cs index cb90b2c..31e8b6f 100644 --- a/Program.cs +++ b/Program.cs @@ -150,17 +150,13 @@ internal static class Program { Description = "Data Type", DefaultValueFactory = _ => "jpeg" }; - dataTypeArgument.CompletionSources.Add(_ => { - List dataTypes = []; - dataTypes.AddRange([ - new("description"), - new("format"), - new("jpeg"), - new("json"), - new("sign"), - new("title")]); - return dataTypes; - }); + dataTypeArgument.CompletionSources.Add(_ => [ + new("description"), + new("format"), + new("jpeg"), + new("json"), + new("sign"), + new("title")]); Option outputOption = new("--output", "-o") { Description = "Output File", DefaultValueFactory = _ => "-"