Explain main_log_context *args.

master
voussoir 2021-05-14 09:53:19 -07:00
parent c744135b21
commit a45c5908f0
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,9 @@ def main_log_context(argv, subject, *args, **kwargs):
that kills your main function.
7. Results are sent at the end of runtime.
Additional *args, **kwargs go to LogHandler init, so you can
pass notify_every_line, etc.
Returns (context, argv) where argv can go into your argparse and context
can wrap your main call.
'''