mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-11-09 21:25:18 +01:00
simplify dataType completion code
This commit is contained in:
parent
84c371dede
commit
71907a2ddc
1 changed files with 7 additions and 11 deletions
|
|
@ -150,17 +150,13 @@ internal static class Program {
|
|||
Description = "Data Type",
|
||||
DefaultValueFactory = _ => "jpeg"
|
||||
};
|
||||
dataTypeArgument.CompletionSources.Add(_ => {
|
||||
List<CompletionItem> dataTypes = [];
|
||||
dataTypes.AddRange([
|
||||
dataTypeArgument.CompletionSources.Add(_ => [
|
||||
new("description"),
|
||||
new("format"),
|
||||
new("jpeg"),
|
||||
new("json"),
|
||||
new("sign"),
|
||||
new("title")]);
|
||||
return dataTypes;
|
||||
});
|
||||
Option<String> outputOption = new("--output", "-o") {
|
||||
Description = "Output File",
|
||||
DefaultValueFactory = _ => "-"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue