def parse_args(self, args=None, namespace=None): """ Parse command line arguments and set loglevel accordingly. """ result = ArgumentParser.parse_args(self, args=args, namespace=namespace) log.setLevel(result.verbose) return result