public static void Main(string[] args)
        {
            HandleArgs(args);

            if (WhatToDo == Action.Unknown)
            {
                return;
            }

            if (WhatToDo == Action.Decode)
            {
                uint node, action;

                Ev1527Decoder.Decode(PULSES, out node, out action);

                Console.WriteLine("{{\n \"message\": {{\n    \"unitcode\": {0},\n    \"command\": {1}\n  }}\n}}", node, action);
            }

            if (WhatToDo == Action.Encode)
            {
                int[] pulses = Ev1527Decoder.Encode(Node, Command);
                for (int i = 0; i < pulses.Length; i++)
                {
                    if (i > 0)
                    {
                        Console.Write(" ");
                    }
                    Console.Write(pulses[i]);
                }
                Console.WriteLine();
            }
        }