def option(value, default='', omit_opts=False, omit_master=False, omit_pillar=False):
 if (not omit_opts):
  if (value in __opts__):
   return __opts__[value]
 if (not omit_master):
  if (value in __pillar__.get('master', {})):
   return __pillar__['master'][value]
 if (not omit_pillar):
  if (value in __pillar__):
   return __pillar__[value]
 if (value in DEFAULTS):
  return DEFAULTS[value]
 return default

def option ( value , default = '' , omit_opts = False , omit_master = False , omit_pillar = False ) : if ( not omit_opts ) : if ( value in __opts__ ) : return __opts__ [ value ] if ( not omit_master ) : if ( value in __pillar__ . get ( 'master' , { } ) ) : return __pillar__ [ 'master' ] [ value ] if ( not omit_pillar ) : if ( value in __pillar__ ) : return __pillar__ [ value ] if ( value in DEFAULTS ) : return DEFAULTS [ value ] return default
attaches an option to the command .