#! /usr/bin/env node
var yargs = require("yargs");

console.log(yargs.parse(process.argv.slice(2)));

//var argv = require("yargs").argv;
//process.argv.slice(2).forEach(function (val, index, array) {
//  console.log(index + ': ' + val);
//});

// function readStdIn(callback) {
//     var called = false, data = "", finish = function (content) {
//         if (!called) {
//             process.stdin.pause();
//             callback(content);
//             called = true;
//         }
//     };
//     process.stdin.on("error", function () {
//         finish();
//     });
//     process.stdin.on("end", function () {
//         //finish(data);
//     });
//     process.stdin.on("readable", function () {
//         var chunk = this.read();
//         if (chunk === null) {
//             finish(data);
//         } else {
//            data += chunk;
//         }
//     });
// }
//
// readStdIn(function (fromStdIn) {
//     console.log(fromStdIn);
//     console.log(fromStdIn.length);
//     //console.log(argv);
// });

@@ -18,17 +18,16 @@
 ode%0A
+%0A
 var 
-yargs
+App
  = r
@@ -38,991 +38,55 @@
 re(%22
-yargs%22);%0A%0Aconsole.log(yargs.parse(process.argv.slice(2)));%0A%0A//var argv = require(%22yargs%22).argv;%0A//process.argv.slice(2).forEach(function (val, index, array) %7B%0A//  console.log(index + ': ' + val);%0A//%7D);%0A%0A// function readStdIn(callback) %7B%0A//     var called = false, data = %22%22, finish = function (content) %7B%0A//         if (!called) %7B%0A//             process.stdin.pause();%0A//             callback(content);%0A//             called = true;%0A//         %7D%0A//     %7D;%0A//     process.stdin.on(%22error%22, function () %7B%0A//         finish();%0A//     %7D);%0A//     process.stdin.on(%22end%22, function () %7B%0A//         //finish(data);%0A//     %7D);%0A//     process.stdin.on(%22readable%22, function () %7B%0A//         var chunk = this.read();%0A//         if (chunk === null) %7B%0A//             finish(data);%0A//         %7D else %7B%0A//            data += chunk;%0A//         %7D%0A//     %7D);%0A// %7D%0A//%0A// readStdIn(function (fromStdIn) %7B%0A//     console.log(fromStdIn);%0A//     console.log(fromStdIn.length);%0A//     //console.log(argv);%0A// %7D
+../lib/app%22).App;%0A%0Avar app = new App();%0Aapp.run(
 );%0A

Clean up CLI entry point script.