Sets the banner to include these arg names
511186
def arg(arg_name,*options)
      options << :optional if options.include?(:any) && !options.include?(:optional)
      options << :required unless options.include? :optional
      options << :one unless options.include?(:any) || options.include?(:many)
      @args << arg_name
      @arg_options[arg_name] = options
      options.select(&STRINGS_ONLY).each do |doc|
        @arg_documentation[arg_name] = doc + (options.include?(:optional) ? " (optional)" : "")
      end
      set_banner
    end
1117190
def show_banner(ctx, param, value):
    """"""
    if not value or ctx.resilient_parsing:
        return
    set_settings()
    click.echo(settings.dynaconf_banner)
    click.echo("Learn more at: http://github.com/rochacbruno/dynaconf")
    ctx.exit()
702389
def fill_arg(self, *args):
        
        missing = self.missing_vars()
        if len(args) == len(missing) == 1:
            self.setval(missing[0], args[0])
622376
function setOption(arg)
{
  arg = arg.split('=')

  var key, value

  if(arg.length > 1)
  {
    key   = arg.shift()
    value = arg.join('=')
  }
  else
  {
    key = arg
    value = true
  }

  this[key] = value
}
1154976
def add_arguments(self, parser):
        """"""
        parser.add_argument('app_label', nargs='*')
        for argument in self.arguments:
            parser.add_argument(*argument.split(' '), **self.arguments[argument])
138209
def _add(self, name, *args, **kw):
        
        argname = list(self.argdict)[self._argno]
        if argname != name:
            raise NameError(
                'Setting argument %s, but it should be %s' % (name, argname))
        self._group.add_argument(*args, **kw)
        self.all_arguments.append((args, kw))
        self.names.append(name)
        self._argno += 1
1284093
def init(banner, hidden, backup):
    
    manage_file = HIDDEN_MANAGE_FILE if hidden else MANAGE_FILE
    if os.path.exists(manage_file):
        if not click.confirm('Rewrite {0}?'.format(manage_file)):
            return

        if backup:
            bck = '.bck_{0}'.format(manage_file)
            with open(manage_file, 'r') as source, open(bck, 'w') as bck_file:
                bck_file.write(source.read())

    with open(manage_file, 'w') as output:
        data = default_manage_dict
        if banner:
            data['shell']['banner']['message'] = banner
        output.write(yaml.dump(data, default_flow_style=False))
220438
function collectArguments(args) {
  for (var i = 0; i < args.length; i += 2) {
    if (args[i].lastIndexOf('--', 0) !== 0) {
      --i;
      continue;
    }

    flags[args[i]] = args[i + 1];
  }
}
699419
function (self, args) {
    var pathname = self.context.resolve(args[0]);

    self.context.dependOnAsset(pathname);
    self.includedPathnames.push(pathname);
  }
353661
function setFlags() {
		flagN = !!( P & 0x80 );
		flagV = !!( P & 0x40 );
		flagB = !!( P & 0x10 );
		flagD = !!( P & 0x08 );
		flagI = !!( P & 0x04 );
		flagZ = !!( P & 0x02 );
		flagC = !!( P & 0x01 );
	}
607166
public void setArgs(String[] args) {
        if (args == null) {
            args = new String[]{};
        }
        this.args = args;
        this.argsList = Collections.unmodifiableList(new ArrayList<String>(Arrays.asList(args)));
    }
87849
private void loadImages(TextView textView, List<BannerComponentNode> bannerComponentNodes) {
    if (!hasImages()) {
      return;
    }

    updateShieldUrlIndices(bannerComponentNodes);
    createTargets(textView);
    loadTargets();
  }
484393
public function Banner() {
      $this->Permission('Garden.Settings.Manage');
      $this->AddSideMenu('dashboard/settings/banner');
      $this->Title(T('Banner'));
      
      $Validation = new Gdn_Validation();
      $ConfigurationModel = new Gdn_ConfigurationModel($Validation);
      $ConfigurationModel->SetField(array(
         'Garden.HomepageTitle' => C('Garden.Title'),
         'Garden.Title',
         'Garden.Description'
         ));
      
      // Set the model on the form.
      $this->Form->SetModel($ConfigurationModel);

      // Get the current logo.
      $Logo = C('Garden.Logo');
      if ($Logo) {
         $Logo = ltrim($Logo, '/');
         // Fix the logo path.
         if (StringBeginsWith($Logo, 'uploads/'))
            $Logo = substr($Logo, strlen('uploads/'));
         $this->SetData('Logo', $Logo);
      }
      
      // Get the current favicon.
      $Favicon = C('Garden.FavIcon');
      $this->SetData('Favicon', $Favicon);
      
      $ShareImage = C('Garden.ShareImage');
      $this->SetData('ShareImage', $ShareImage);
      
      // If seeing the form for the first time...
      if (!$this->Form->AuthenticatedPostBack()) {
         // Apply the config settings to the form.
         $this->Form->SetData($ConfigurationModel->Data);
      } else {
         $SaveData = array();
         if ($this->Form->Save() !== FALSE) {
            $Upload = new Gdn_Upload();
            try {
               // Validate the upload
               $TmpImage = $Upload->ValidateUpload('Logo', FALSE);
               if ($TmpImage) {
                  // Generate the target image name
                  $TargetImage = $Upload->GenerateTargetName(PATH_UPLOADS);
                  $ImageBaseName = pathinfo($TargetImage, PATHINFO_BASENAME);
                  
                  // Delete any previously uploaded images.
                  if ($Logo)
                     $Upload->Delete($Logo);
                  
                  // Save the uploaded image
                  $Parts = $Upload->SaveAs(
                     $TmpImage,
                     $ImageBaseName
                  );
                  $ImageBaseName = $Parts['SaveName'];
                  $SaveData['Garden.Logo'] = $ImageBaseName;
                  $this->SetData('Logo', $ImageBaseName);
               }
               
               $ImgUpload = new Gdn_UploadImage();
               $TmpFavicon = $ImgUpload->ValidateUpload('Favicon', FALSE);
               if ($TmpFavicon) {
                  $ICOName = 'favicon_'.substr(md5(microtime()), 16).'.ico';

                  if ($Favicon)
                     $Upload->Delete($Favicon);

                  // Resize the to a png.
                  $Parts = $ImgUpload->SaveImageAs($TmpFavicon, $ICOName, 16, 16, array('OutputType' => 'ico', 'Crop' => TRUE));
                  $SaveData['Garden.FavIcon'] = $Parts['SaveName'];
                  $this->SetData('Favicon', $Parts['SaveName']);
               }
               
               $TmpShareImage = $Upload->ValidateUpload('ShareImage', FALSE);
               if ($TmpShareImage) {
                  $TargetImage = $Upload->GenerateTargetName(PATH_UPLOADS, FALSE);
                  $ImageBaseName = pathinfo($TargetImage, PATHINFO_BASENAME);
                  
                  if ($ShareImage)
                     $Upload->Delete($ShareImage);
                  
                  $Parts = $Upload->SaveAs($TmpShareImage, $ImageBaseName);
                  $SaveData['Garden.ShareImage'] = $Parts['SaveName'];
                  $this->SetData('ShareImage', $Parts['SaveName']);
                  
               }
            } catch (Exception $ex) {
               $this->Form->AddError($ex);
            }
            // If there were no errors, save the path to the logo in the config
            if ($this->Form->ErrorCount() == 0) {
               SaveToConfig($SaveData);
               
            }
            
            $this->InformMessage(T("Your settings have been saved."));
         }
      }
      
      $this->Render();      
   }
798329
def render_name(self, name, image_tag, platform):
        """"""

        if self.scratch or self.isolated:
            name = image_tag
            # Platform name may contain characters not allowed by OpenShift.
            if platform:
                platform_suffix = '-{}'.format(platform)
                if name.endswith(platform_suffix):
                    name = name[:-len(platform_suffix)]

            _, salt, timestamp = name.rsplit('-', 2)

            if self.scratch:
                name = 'scratch-{}-{}'.format(salt, timestamp)
            elif self.isolated:
                name = 'isolated-{}-{}'.format(salt, timestamp)

        # !IMPORTANT! can't be too long: https://github.com/openshift/origin/issues/733
        self.template['metadata']['name'] = name
863740
function formatArgs(args) {
	const {namespace: name, useColors} = this;

	if (useColors) {
		const c = this.color;
		const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
		const prefix = `  ${colorCode};1m${name} \u001B[0m`;

		args[0] = prefix + args[0].split('\n').join('\n' + prefix);
		args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
	} else {
		args[0] = getDate() + name + ' ' + args[0];
	}
}
176258
function configureImageNames() {
    for (let i = 0; i < this.appsFolders.length; i++) {
        const originalImageName = this.appConfigs[i].baseName.toLowerCase();
        const targetImageName = this.dockerRepositoryName ? `${this.dockerRepositoryName}/${originalImageName}` : originalImageName;
        this.appConfigs[i].targetImageName = targetImageName;
    }
}
127637
def _set_named_args(self, **kv):
        
        for k in kv:
            self._body['${0}'.format(k)] = kv[k]
        return self