from checklib import Check, Result class MyCheck(Check): def check(self): self.result.state = Result.UNKNOWN self.result.short_message = 'I don\'t know :-)' def add_arguments(self): pass # Collect argparse arguments at self.arguments # If defining __init__, call super().__init__ first -- it populates # self.result, self.argumentparser and so on.