Ejemplo n.º 1
0
 def validateOptions(self):
     getcommand.validateOptions(self)
     if self.options.short:
         if self.options.jobids is None:
             msg = "%sError%s: Please specify the job ids for which to retrieve the logs." % (colors.GREEN, colors.NORMAL)
             msg += " Use the --jobids option."
             ex = MissingOptionException(msg)
             ex.missingOption = "jobids"
             raise ex
Ejemplo n.º 2
0
 def validateOptions(self):
     getcommand.validateOptions(self)
     if self.options.short:
         if self.options.jobids is None:
             msg  = "%sError%s: Please specify the job ids for which to retrieve the logs." % (colors.GREEN, colors.NORMAL)
             msg += " Use the --jobids option."
             ex = MissingOptionException(msg)
             ex.missingOption = "jobids"
             raise ex