anchor.diff:    parser.addFlag("retry-auto", help: "Auto retry failed uploads", defaultsTo: false, negatable: false);
     parser.addFlag("help", abbr: "h", help: "Display this information and exit", negatable: false);
   
  -  var result;
  +  ArgResults result;
     try {
       result = parser.parse(options.arguments);
     } on FormatException catch(e) {
  
positive.code:       }
        
        if (stdoutBuffer.toString().contains(r"Are you ready to upload your package")) {
          // @damondouglas replacing 315 p.stdin.writeString('y\n'):
          p.stdin.write('y\n');
          
        } else if (stdoutBuffer.toString().contains(r"warnings. Upload anyway")) {
          // @damondouglas replacing 317 p.stdin.writeString('y\n'):
          p.stdin.write('y\n');
        }
        
      });
      
      // @damondouglas replacing 320 p.onExit = (code):
      p.exitCode.then((code){
        if (pubVerbose) {
          print("onExit: pub publish");
  
negative.code:   var completer = new Completer<String>();
    promptPassword().then((pw) {
      var client = new HttpClient();
      var githubAuthorizationUri = Uri.parse("https://api.github.com/authorizations");
  
      client.addCredentials(githubAuthorizationUri, "realm", new HttpClientBasicCredentials(gituser, pw));
  
      Future<HttpClientRequest> connection = client.openUrl("POST", githubAuthorizationUri);
      
      connection
        .then((request){
          var data = JSON.stringify({"scopes": ["repo"], "note": "API Client Generator"});
          request.headers.set(HttpHeaders.CONTENT_TYPE, "application/json");
          request.headers.set(HttpHeaders.CONTENT_LENGTH, "${data.length}");
          
  