Esempio 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
Esempio 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