mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-05 03:58:16 +08:00
Tighten up when to show/hide the application "-v|--version" option.
This commit is contained in:

committed by
Patrik Svensson

parent
c4a97f3c89
commit
958820dd66
@ -36,8 +36,8 @@ internal sealed class CommandExecutor
|
||||
if (firstArgument != null)
|
||||
{
|
||||
// Asking for version?
|
||||
if (firstArgument.Equals("--version", StringComparison.OrdinalIgnoreCase) ||
|
||||
firstArgument.Equals("-v", StringComparison.OrdinalIgnoreCase))
|
||||
if (firstArgument.Equals("-v", StringComparison.OrdinalIgnoreCase) ||
|
||||
firstArgument.Equals("--version", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
if (configuration.Settings.ApplicationVersion != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user