module.exports = function(grunt) {
  var config = require('./.screeps.json')
  grunt.loadNpmTasks('grunt-screeps');
  grunt.initConfig({
      screeps: {
          options: {
              email: config.email,
              password: config.password,
              branch: config.branch,
              ptr: config.ptr
          },
          dist: {
              src: ['src/*.js']
          }
      }
  });
}
@@ -70,16 +70,240 @@
 .json')%0A
+  var branch = grunt.option('branch') %7C%7C config.branch;%0A  var email = grunt.option('email') %7C%7C config.email;%0A  var password = grunt.option('password') %7C%7C config.password;%0A  var ptr = grunt.option('ptr') ? true : config.ptr%0A%0A
   grunt.
@@ -413,23 +413,16 @@
  email: 
-config.
 email,%0A 
@@ -444,23 +444,16 @@
 ssword: 
-config.
 password
@@ -476,23 +476,16 @@
 branch: 
-config.
 branch,%0A
@@ -503,23 +503,16 @@
    ptr: 
-config.
 ptr%0A    

update Gruntfile.js so to allow cli options override