Exemplo n.º 1
0
        void Command(MyCommandLine args)
        {
            switch (args.Argument(1))
            {
            case "write": AddLine(args.Argument(2)); break;

            case "clear": Buffer.Clear(); break;

            case "help": Owner.Log(HELP); break;

            default: Owner.Log($"Unknown command: {args.ToString()}"); break;
            }
        }