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: angular.module('portainer.services')
  .factory('VolumeService', ['$q', 'Volume', function VolumeServiceFactory($q, Volume) {
    'use strict';
    var service = {};
  
    service.getVolumes = function() {
      return Volume.query({}).$promise;
    };
  
    function prepareVolumeQueries(template, containerConfig) {
      var volumeQueries = [];
      if (template.volumes) {
        template.volumes.forEach(function (vol) {
          volumeQueries.push(
            Volume.create({}, function (d) {
              if (d.message) {
                Messages.error("Unable to create volume", {}, d.message);
              } else {
                Messages.send("Volume created", d.Name);
                containerConfig.Volumes[vol] = {};
                containerConfig.HostConfig.Binds.push(d.Name + ':' + vol);
              }
            }, function (e) {
              Messages.error("Failure", e, "Unable to create volume");
            }).$promise
          );
        });
      }
      return volumeQueries;
    }
  
    service.createVolume = function(volumeConfiguration) {
      var deferred = $q.defer();
      Volume.create(volumeConfiguration).$promise
      .then(function success(data) {
        if (data.message) {
          deferred.reject({ msg: data.message });
        } else {
          deferred.resolve(data);
        }
      })
      .catch(function error(err) {
        deferred.reject({ msg: 'Unable to create volume', err: err });
      });
      return deferred.promise;
    };
  
    service.createVolumes = function(volumes) {
      var createVolumeQueries = volumes.map(function(volume) {
        return service.createVolume(volume);
      });
      return $q.all(createVolumeQueries);
    };
  
    service.createXAutoGeneratedLocalVolumes = function (x) {
      var createVolumeQueries = [];
      for (var i = 0; i < x; i++) {
        createVolumeQueries.push(service.createVolume({}));
      }
      return $q.all(createVolumeQueries);
    };
  
    return service;
  }]);
  