if (args.hasOwnProperty(i) && /^--gid=\d+$/.test(args[i])) {
    gid = args[i].replace(/\D/g, '') * 1;
  }