Class TigerCliFileOpenAttribute
Marks a string command option as an existing-file path that uses the inline file picker when
TigerCli prompts for a missing value.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class TigerCliFileOpenAttribute : Attribute
- Inheritance
-
TigerCliFileOpenAttribute
- Inherited Members
Remarks
Apply this alongside TigerCliOptionAttribute. Values supplied on the command line
are not browsed, but are still validated as existing files. A file-open option is treated as a
required path even when Required is false. The attribute
supports one file only.
Properties
Filter
Gets or sets an optional filesystem search pattern, such as
*.json, used to filter the
files shown by the picker. It does not weaken validation of a directly supplied path.public string? Filter { get; set; }