make title argument for create optional

This commit is contained in:
Syping 2025-10-26 02:49:21 +01:00
parent 81bf43b558
commit 8b93144f98

View file

@ -241,8 +241,9 @@ internal static class Program {
Argument<String> jpegArgument = new("jpeg") {
Description = "JPEG File",
};
Argument<String> titleArgument = new("title") {
Argument<String?> titleArgument = new("title") {
Description = "Photo Title",
DefaultValueFactory = _ => null
};
Command createCommand = new("create", "Create Photo") {
photoArgument, formatArgument, jpegArgument, titleArgument