diff --git a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordDownloadFileCliCommand.cs b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordDownloadFileCliCommand.cs index aa341793..c3a113a8 100644 --- a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordDownloadFileCliCommand.cs +++ b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordDownloadFileCliCommand.cs @@ -23,8 +23,11 @@ public class EnvDataRecordDownloadFileCliCommand : ProfiledCliCommand [CliOption(Name = "--entity", Description = "Entity logical name (e.g. fin_mytable).", Required = true)] public string Entity { get; set; } = null!; - [CliArgument( + [CliOption( + Name = "--record-id", + Aliases = ["--record"], Description = "The GUID of the record containing the file.", + Required = true, ValidationPattern = CliValidation.GuidPattern, ValidationMessage = CliValidation.GuidValidationMessage)] public required Guid RecordId { get; set; } diff --git a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUploadFileCliCommand.cs b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUploadFileCliCommand.cs index 6dbde44c..8a7a3579 100644 --- a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUploadFileCliCommand.cs +++ b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUploadFileCliCommand.cs @@ -23,8 +23,11 @@ public class EnvDataRecordUploadFileCliCommand : StagedCliCommand [CliOption(Name = "--entity", Description = "Entity logical name (e.g. fin_mytable).", Required = true)] public string Entity { get; set; } = null!; - [CliArgument( + [CliOption( + Name = "--record-id", + Aliases = ["--record"], Description = "The GUID of the record to upload the file to.", + Required = true, ValidationPattern = CliValidation.GuidPattern, ValidationMessage = CliValidation.GuidValidationMessage)] public required Guid RecordId { get; set; }