MCPcopy Index your code
hub / github.com/cirosantilli/linux-kernel-module-cheat / cli

Method cli

cli_function.py:238–248  ·  view source on GitHub ↗

Same as cli, but also exit the program with status equal to the return value of main. main must return an integer for this to be used. None is considered 0.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

236 return self._do_main(vars(args))
237
238 def cli(self, *args, **kwargs):
239 '''
240 Same as cli, but also exit the program with status equal to the return value of main.
241 main must return an integer for this to be used.
242
243 None is considered 0.
244 '''
245 exit_status = self.cli_noexit(*args, **kwargs)
246 if exit_status is None:
247 exit_status = 0
248 sys.exit(exit_status)
249
250 def get_cli(self, **kwargs):
251 '''

Callers 1

cli_function.pyFile · 0.80

Calls 1

cli_noexitMethod · 0.95

Tested by

no test coverage detected