using Kompas.Mcp.Core.Startup;

namespace Kompas.Mcp.Tests;

[Trait("Category", "Unit")]
public sealed class CliArgumentsTests
{
    [Theory]
    [InlineData(new[] { "--version" }, true)]
    [InlineData(new[] { "-v" }, true)]
    [InlineData(new[] { "--other", "--version" }, true)]
    [InlineData(new string[0], false)]
    [InlineData(new[] { "--verbose" }, false)]
    public void IsVersionRequest_recognizes_only_exact_flags(string[] args, bool expected)
        => Assert.Equal(expected, CliArguments.IsVersionRequest(args));
}
