diff --git a/atc-coding-rules-updater.ps1 b/atc-coding-rules-updater.ps1 index df1a648b..3d555a8f 100644 --- a/atc-coding-rules-updater.ps1 +++ b/atc-coding-rules-updater.ps1 @@ -9,4 +9,4 @@ atc-coding-rules-updater ` run ` -p $currentPath ` --optionsPath $currentPath'\atc-coding-rules-updater.json' ` - -v \ No newline at end of file + --verbose \ No newline at end of file diff --git a/src/Atc.Console.Spectre/CommandConstants.cs b/src/Atc.Console.Spectre/CommandConstants.cs index 234ff1e0..018c2c3b 100644 --- a/src/Atc.Console.Spectre/CommandConstants.cs +++ b/src/Atc.Console.Spectre/CommandConstants.cs @@ -4,8 +4,8 @@ public static class CommandConstants { public const string ArgumentShortHelp = "-h"; public const string ArgumentLongHelp = "--help"; + public const string ArgumentShortVersion = "-v"; public const string ArgumentLongVersion = "--version"; - public const string ArgumentShortVerbose = "-v"; public const string ArgumentLongVerbose = "--verbose"; public const string NameOptionsFile = "options-file"; diff --git a/src/Atc.Console.Spectre/CommandSettings/BaseCommandSettings.cs b/src/Atc.Console.Spectre/CommandSettings/BaseCommandSettings.cs index 32a446e1..ba859e09 100644 --- a/src/Atc.Console.Spectre/CommandSettings/BaseCommandSettings.cs +++ b/src/Atc.Console.Spectre/CommandSettings/BaseCommandSettings.cs @@ -2,7 +2,7 @@ namespace Atc.Console.Spectre.CommandSettings; public class BaseCommandSettings : global::Spectre.Console.Cli.CommandSettings { - [CommandOption($"{CommandConstants.ArgumentShortVerbose}|{CommandConstants.ArgumentLongVerbose}")] + [CommandOption($"{CommandConstants.ArgumentLongVerbose}")] [Description("Use verbose for more debug/trace information")] public bool Verbose { get; set; } diff --git a/src/Atc.Console.Spectre/Helpers/ProgramCsHelper.cs b/src/Atc.Console.Spectre/Helpers/ProgramCsHelper.cs index 5e7dc01d..06a060bf 100644 --- a/src/Atc.Console.Spectre/Helpers/ProgramCsHelper.cs +++ b/src/Atc.Console.Spectre/Helpers/ProgramCsHelper.cs @@ -17,8 +17,7 @@ public static void SetMinimumLogLevelIfNeeded( throw new ArgumentNullException(nameof(consoleLoggerConfiguration)); } - if (args.Any(x => x.Equals(CommandConstants.ArgumentShortVerbose, StringComparison.OrdinalIgnoreCase)) || - args.Any(x => x.Equals(CommandConstants.ArgumentLongVerbose, StringComparison.OrdinalIgnoreCase))) + if (args.Any(x => x.Equals(CommandConstants.ArgumentLongVerbose, StringComparison.OrdinalIgnoreCase))) { consoleLoggerConfiguration.MinimumLogLevel = LogLevel.Trace; }