Ejemplo n.º 1
0
        private void InitCommandLineParameters()
        {
            var sourcePath = CmdParser
                             .Option(
                "-sourcePath <DIR>",
                "The source folder of the input interface level test class.",
                CommandOptionType.SingleValue)
                             .IsRequired()
                             .Accepts((dir) => dir.ExistingDirectory());

            var destPath = CmdParser
                           .Option(
                "-destPath <DIR>",
                "The destination folder of class generation.",
                CommandOptionType.SingleValue)
                           .IsRequired()
                           .Accepts((dir) => dir.ExistingDirectory());

            var sourceClassName = CmdParser
                                  .Option(
                "-sourceClassName <TestFileName>",
                "The name of the source class of generation.",
                CommandOptionType.SingleValue)
                                  .IsRequired();
        }