fdup/FindDuplicates/ListSettings.cs

23 lines
744 B
C#
Raw Normal View History

2024-04-16 19:33:16 +00:00
using System.ComponentModel;
2024-04-16 19:15:07 +00:00
using Spectre.Console.Cli;
namespace FindDuplicates;
internal sealed class ListSettings : CommandSettings
{
[CommandArgument(0, "[path]")]
[Description("The path to search. Defaults to the current directory.")]
[DefaultValue(".")]
public string InputPath { get; set; } = ".";
2024-04-16 19:15:07 +00:00
[CommandOption("-r|--recursive")]
[Description("Scans the directory recursively. This may increase run time and is not advised to use when at high order directories such as C: or /")]
2024-04-16 19:15:07 +00:00
[DefaultValue(false)]
public bool Recursive { get; set; } = false;
[CommandOption("--verbose")]
[Description("Enable verbose output.")]
[DefaultValue(false)]
public bool Verbose { get; set; } = false;
2024-04-16 19:15:07 +00:00
}