static void Main(string[] arguments)
        {
            var args = new ParsedArguments(arguments);

            if (args.Params.Count > 0)
            {
                string inputFile = args.Params.FirstOrDefault();
                var    util      = new XmlDocumentSweeper(inputFile);

                string outputFile = args.GetNamedParam("output");
                if (string.IsNullOrWhiteSpace(outputFile) && args.HasSwitch("replace"))
                {
                    outputFile = inputFile;
                }

                if (!string.IsNullOrWhiteSpace(outputFile))
                {
                    util.Transform(outputFile);
                }
                else
                {
                    Console.WriteLine(util.Transform());
                }
            }
            else
            {
                usage();
            }
        }
        static void Main(string[] arguments)
        {
            var args = new ParsedArguments(arguments);

            if (args.Params.Count > 0)
            {
                string inputFile = args.Params.FirstOrDefault();
                var util = new XmlDocumentSweeper(inputFile);

                string outputFile = args.GetNamedParam("output");
                if (string.IsNullOrWhiteSpace(outputFile) && args.HasSwitch("replace"))
                    outputFile = inputFile;

                if (!string.IsNullOrWhiteSpace(outputFile))
                    util.Transform(outputFile);
                else
                    Console.WriteLine(util.Transform());
            }
            else
                usage();
        }