def directives():
 cmd = '{0} -L'.format(_detect_os())
 ret = {}
 out = __salt__['cmd.run'](cmd)
 out = out.replace('\n DCTB ', ' DCTB ')
 for line in out.splitlines():
  if (not line):
   continue
  comps = line.split(' DCTB ')
  desc = '\n'.join(comps[1:])
  ret[comps[0]] = desc
 return ret

def directives ( ) : cmd = '{0} -L' . format ( _detect_os ( ) ) ret = { } out = __salt__ [ 'cmd.run' ] ( cmd ) out = out . replace ( '\n DCTB ' , ' DCTB ' ) for line in out . splitlines ( ) : if ( not line ) : continue comps = line . split ( ' DCTB ' ) desc = '\n' . join ( comps [ 1 : ] ) ret [ comps [ 0 ] ] = desc return ret
return list of directives together with expected arguments and places where the directive is valid cli example: .