diff --git a/Program.cs b/Program.cs index 523b162..cb90b2c 100644 --- a/Program.cs +++ b/Program.cs @@ -1,4 +1,5 @@ using System.CommandLine; +using System.CommandLine.Completions; using System.Text; namespace RagePhoto.Cli; @@ -149,6 +150,17 @@ 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; + }); Option outputOption = new("--output", "-o") { Description = "Output File", DefaultValueFactory = _ => "-"