diff --git a/src/System.CommandLine/Command.cs b/src/System.CommandLine/Command.cs index c24d041660..2c0a1adbfc 100644 --- a/src/System.CommandLine/Command.cs +++ b/src/System.CommandLine/Command.cs @@ -57,18 +57,22 @@ public IEnumerable Children /// public IList Arguments => _arguments ??= new(this); - internal bool HasArguments => _arguments is not null; + internal bool HasArguments => _arguments is not null && _arguments.Count > 0 ; /// /// Represents all of the options for the command, including global options that have been applied to any of the command's ancestors. /// public IList