﻿using System;
using System.Collections.Generic;
using ManyConsole;

namespace TeamCityBuildChanges
{
    class Program
    {
        static int Main(string[] args)
        {
            var commands = GetCommands();
            return ConsoleCommandDispatcher.DispatchCommand(commands, args, Console.Out);
        }

        static IEnumerable<ConsoleCommand> GetCommands()
        {
            return ConsoleCommandDispatcher.FindCommandsInSameAssemblyAs(typeof(Program));
        }

        
    }
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using ManyConsole;

namespace TeamCityBuildChanges
{
    class Program
    {
        static int Main(string[] args)
        {
            var commands = GetCommands();
            return ConsoleCommandDispatcher.DispatchCommand(commands, args, Console.Out);
        }

        static IEnumerable<ConsoleCommand> GetCommands()
        {
            return ConsoleCommandDispatcher.FindCommandsInSameAssemblyAs(typeof(Program)).Where(c => !string.IsNullOrEmpty(c.Command));
        }

        
    }
}

Fix for base command being shown as command on command line.
Fix for base command being shown as command on command line.
