I am using spectre.console. I have the following CommandSettings:
public class LogCommandSettings : CommandSettings
{
[CommandOption("--logFile")]
[Description("Path and file name for logging")]
[DefaultValue("application.log")]
public string LogFile { get; set; }
}
I can set the default value for a CommandOption using [DefaultValue] attribute. However this case I would like to calculate the default path runtime, say the current user's temp folder
Sure, I can do this somewhere in the application, but how will be its actual default value will be displayed by the built in help?