hunk.code_window: 	kingpin.Version(version)
   	flags := &portainer.CLIFlags{
   		Endpoint:  kingpin.Flag("host", "Dockerd endpoint").Short('H').String(),
   		Logo:      kingpin.Flag("logo", "URL for the logo displayed in the UI").String(),
   		Labels:    pairs(kingpin.Flag("hide-label", "Hide containers with a specific label in the UI").Short('l')),
   		Addr:      kingpin.Flag("bind", "Address and port to serve Portainer").Default(defaultBindAddress).Short('p').String(),
   		Assets:    kingpin.Flag("assets", "Path to the assets").Default(defaultAssetsDirectory).Short('a').String(),
   		Data:      kingpin.Flag("data", "Path to the folder where the data is stored").Default(defaultDataDirectory).Short('d').String(),
   		Templates: kingpin.Flag("templates", "URL to the templates (apps) definitions").Default(defaultTemplatesURL).Short('t').String(),
   		NoAuth:    kingpin.Flag("no-auth", "Disable authentication").Default(defaultNoAuth).Bool(),
   		TLSVerify: kingpin.Flag("tlsverify", "TLS support").Default(defaultTLSVerify).Bool(),
   		TLSCacert: kingpin.Flag("tlscacert", "Path to the CA").Default(defaultTLSCACertPath).String(),
   		TLSCert:   kingpin.Flag("tlscert", "Path to the TLS certificate file").Default(defaultTLSCertPath).String(),
   		TLSKey:    kingpin.Flag("tlskey", "Path to the TLS key").Default(defaultTLSKeyPath).String(),
   	}
   	kingpin.Parse()
  
hunk.labels: keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep
hunk.after_edit: 		Endpoint:    kingpin.Flag("host", "Dockerd endpoint").Short('H').String(),
   		Logo:        kingpin.Flag("logo", "URL for the logo displayed in the UI").String(),
   		Labels:      pairs(kingpin.Flag("hide-label", "Hide containers with a specific label in the UI").Short('l')),
   		Addr:        kingpin.Flag("bind", "Address and port to serve Portainer").Default(defaultBindAddress).Short('p').String(),
   		Assets:      kingpin.Flag("assets", "Path to the assets").Default(defaultAssetsDirectory).Short('a').String(),
   		Data:        kingpin.Flag("data", "Path to the folder where the data is stored").Default(defaultDataDirectory).Short('d').String(),
   		Templates:   kingpin.Flag("templates", "URL to the templates (apps) definitions").Default(defaultTemplatesURL).Short('t').String(),
   		NoAuth:      kingpin.Flag("no-auth", "Disable authentication").Default(defaultNoAuth).Bool(),
   		NoAnalytics: kingpin.Flag("no-analytics", "Disable Analytics in app").Default(defaultNoAuth).Bool(),
   		TLSVerify:   kingpin.Flag("tlsverify", "TLS support").Default(defaultTLSVerify).Bool(),
   		TLSCacert:   kingpin.Flag("tlscacert", "Path to the CA").Default(defaultTLSCACertPath).String(),
   		TLSCert:     kingpin.Flag("tlscert", "Path to the TLS certificate file").Default(defaultTLSCertPath).String(),
   		TLSKey:      kingpin.Flag("tlskey", "Path to the TLS key").Default(defaultTLSKeyPath).String(),
  
hunk.file_path: api/cli/cli.go
hunk.type: replace
file: describe('ContainerController', function () {
      var $scope, $httpBackend, mockContainer, $routeParams;
  
      beforeEach(module('portainer'));
  
  
      beforeEach(inject(function ($rootScope, $controller, _$routeParams_) {
  
          $scope = $rootScope.$new();
          $routeParams = _$routeParams_;
          $controller('ContainerController', {
              $scope: $scope
          });
  
          angular.mock.inject(function (_$httpBackend_, _Container_) {
              mockContainer = _Container_;
              $httpBackend = _$httpBackend_;
          });
      }));
  
      function expectGetContainer() {
          $httpBackend.expectGET('dockerapi/containers/json').respond({
              'Created': 1421817232,
              'id': 'b17882378cee8ec0136f482681b764cca430befd52a9bfd1bde031f49b8bba9f',
              'Image': 'portainer:latest',
              'Name': '/portainer'
          });
      }
  
      it("a correct rename request to the Docker remote API", function () {
  
          $routeParams.id = 'b17882378cee8ec0136f482681b764cca430befd52a9bfd1bde031f49b8bba9f';
          $scope.container = {
              'Created': 1421817232,
              'id': 'b17882378cee8ec0136f482681b764cca430befd52a9bfd1bde031f49b8bba9f',
              'Image': 'portainer:latest',
              'Name': '/portainer'
          };
          $scope.container.newContainerName = "newName";
  
          var newContainerName = "newName";
          expectGetContainer();
  
          $httpBackend.expectGET('dockerapi/containers/changes').respond([{"Kind": 1, "Path": "/docker.sock"}]);
  
          $httpBackend.expectPOST('dockerapi/containers/' + $routeParams.id + '/rename?name=newName').
              respond({
                  'name': newContainerName
              });
  
          $scope.renameContainer();
  
          $httpBackend.flush();
          expect($scope.container.Name).toBe(newContainerName);
          expect($scope.container.edit).toBeFalsy();
      });
  });