code: def check(self):
          
          keywords = "today yesterday this last week month quarter year".split()
          for argument in self.arg:
              if argument not in keywords:
                  raise did.base.OptionError(
                      "Invalid argument: '{0}'".format(argument))
docs: Perform additional check for given options