mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-11-09 21:25:18 +01:00
make title argument for create optional
This commit is contained in:
parent
81bf43b558
commit
8b93144f98
1 changed files with 2 additions and 1 deletions
|
|
@ -241,8 +241,9 @@ internal static class Program {
|
||||||
Argument<String> jpegArgument = new("jpeg") {
|
Argument<String> jpegArgument = new("jpeg") {
|
||||||
Description = "JPEG File",
|
Description = "JPEG File",
|
||||||
};
|
};
|
||||||
Argument<String> titleArgument = new("title") {
|
Argument<String?> titleArgument = new("title") {
|
||||||
Description = "Photo Title",
|
Description = "Photo Title",
|
||||||
|
DefaultValueFactory = _ => null
|
||||||
};
|
};
|
||||||
Command createCommand = new("create", "Create Photo") {
|
Command createCommand = new("create", "Create Photo") {
|
||||||
photoArgument, formatArgument, jpegArgument, titleArgument
|
photoArgument, formatArgument, jpegArgument, titleArgument
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue