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.")]
|
|
|
|
public string InputPath { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
[CommandOption("-r|--recursive")]
|
|
|
|
[Description("When this flag is set, the directory will be scanned recursively. This may take longer.")]
|
|
|
|
[DefaultValue(false)]
|
|
|
|
public bool Recursive { get; set; } = false;
|
2024-04-17 13:17:56 +00:00
|
|
|
|
|
|
|
[CommandOption("--verbose")]
|
|
|
|
[Description("Enable verbose output.")]
|
|
|
|
[DefaultValue(false)]
|
|
|
|
public bool Verbose { get; set; } = false;
|
2024-04-16 19:15:07 +00:00
|
|
|
}
|