Example #1
0
        static void Main(string[] args)
        {
            TestApplication application = new TestApplication();
            application.Commands.Register(new CompletionExampleCommand());
            application.Commands.Register(typeof(PlainAskCommand));
            application.Commands.Register(typeof(VerticalAskCommand));
            application.Commands.Register(typeof (LongDescriptiveCommand));

            application.HandleCommandLine(args);
            application.SetPrompt("testapp> ");
            application.Run();
        }
Example #2
0
        static void Main(string[] args)
        {
            TestApplication application = new TestApplication();

            application.Commands.Register(new CompletionExampleCommand());
            application.Commands.Register(typeof(PlainAskCommand));
            application.Commands.Register(typeof(VerticalAskCommand));
            application.Commands.Register(typeof(LongDescriptiveCommand));

            application.HandleCommandLine(args);
            application.SetPrompt("testapp> ");
            application.Run();
        }