From 8273a34fef2f612256bb259c8f6acb7dc425ad20 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 17 Apr 2024 14:35:30 +0100 Subject: [PATCH] feat: default to . to reduce need for it as cli arg --- FindDuplicates/ListSettings.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FindDuplicates/ListSettings.cs b/FindDuplicates/ListSettings.cs index f4c6a13..0d25840 100644 --- a/FindDuplicates/ListSettings.cs +++ b/FindDuplicates/ListSettings.cs @@ -5,9 +5,10 @@ namespace FindDuplicates; internal sealed class ListSettings : CommandSettings { - [CommandArgument(0, "")] - [Description("The path to search.")] - public string InputPath { get; set; } = string.Empty; + [CommandArgument(0, "[path]")] + [Description("The path to search. Defaults to the current directory.")] + [DefaultValue(".")] + public string InputPath { get; set; } = "."; [CommandOption("-r|--recursive")] [Description("When this flag is set, the directory will be scanned recursively. This may take longer.")]