Revision cff5fa7f lib/cli.py

b/lib/cli.py
1759 1759
  GetResults() calls.
1760 1760

  
1761 1761
  """
1762
  def __init__(self, cl=None, verbose=True):
1762
  def __init__(self, cl=None, verbose=True, opts=None):
1763 1763
    self.queue = []
1764 1764
    if cl is None:
1765 1765
      cl = GetClient()
1766 1766
    self.cl = cl
1767 1767
    self.verbose = verbose
1768 1768
    self.jobs = []
1769
    self.opts = opts
1769 1770

  
1770 1771
  def QueueJob(self, name, *ops):
1771 1772
    """Record a job for later submit.
......
1773 1774
    @type name: string
1774 1775
    @param name: a description of the job, will be used in WaitJobSet
1775 1776
    """
1777
    SetGenericOpcodeOpts(ops, self.opts)
1776 1778
    self.queue.append((name, ops))
1777 1779

  
1778 1780
  def SubmitPending(self):

Also available in: Unified diff