mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-30 09:48:03 +01:00
We added an automatic version option in 0.49. We did this with good intentions, but forgot that people might already use --version as an option for a root command. This commit makes -v|--version completely opt-in.
18 lines
391 B
C#
18 lines
391 B
C#
namespace Spectre.Console.Cli.Help;
|
|
|
|
/// <summary>
|
|
/// Represents a command model.
|
|
/// </summary>
|
|
public interface ICommandModel : ICommandContainer
|
|
{
|
|
/// <summary>
|
|
/// Gets the name of the application.
|
|
/// </summary>
|
|
string ApplicationName { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the version of the application.
|
|
/// </summary>
|
|
string? ApplicationVersion { get; }
|
|
}
|