code: function getInput(args) {
      if (args._.length > 0) {
          args.in = args._[0];
          return txtfile.readSync(path.resolve(args.in));
      }
      else {
          return new Promise((resolve, reject) => {
              const { stdin } = process;
              let timeout = setTimeout(reject, 1000);
              let input = '';
  
              stdin.setEncoding('utf8');
              stdin.on('data', chunk => {
                  if (timeout) {
                      clearTimeout(timeout);
                      timeout = null;
                  }
                  input += chunk;
              });
  
              stdin.on('end', () => {
                  resolve(input);
              });
  
              stdin.on('error', error => reject(error));
          });
      }
  }
docs: Retrieves the content to be parsed from a file if
  the --in argument was specified or from the stdin
  stream otherwise. Currently, interactive mode is
  not supported and will timeout if no data is received
  from stdin within 1000ms.
  
  @param args An object containing the argument k/v pairs
  @returns {Promise} a Promise that resolves to the content to be parsed