text: #!/usr/bin/env node
  
  var
      program = require('commander'),
      path = require('path'),
      util = require('gulp-util'),
      browserSync = require('browser-sync').create();
  
  
  
  /* ######################## OPTIONS ######################## */
  var options = {};
  
  
  /* ######################## VERSION ######################## */
  program
      .version(
          'commander-gulp-server version: ' + require('../package.json').version + '\n'
      )
  
  
  /* ######################## GULP TEMPLATES ######################## */
  // node ./bin/server.js server \"8080\" --ser \"docs/\""
  program
      .command('server <dir>')
      .option("--ser [options]")
      .action((input, options) => {
          var input = options.input || options.parent.rawArgs;
          var ouput = options.ouput || options.ser;
      
          input = input.filter(function (index, value) {
              if (path.extname(index) == isNaN(index)) {
                  return index;               
              }
          });
  
          if(input.length === 0 || input === "undefine") {
              return util.log("Error: El puerto no existe o está activado. Debe ser un número: 'Ejemplo(8080)'")
          }
          else {
              return browserSync.init({
                  port: parseInt(input),
                  watch: true,
                  open: true,
                  server: {
                      baseDir: ouput,
                      serveStaticOptions: {
                          extensions: [
                              "html",
                              "css",
                              "js"
                          ]
                      }
                  }            
              });  
          }
         
      })
  
  program.parse(process.argv);
  
  