You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./lul.py
INFO:root:in main
$ ./lul.py --debug --another-option
DEBUG:root:enabled debug logs
DEBUG:root:enabled another option
INFO:root:in main
$ ./lul.py --another-option --debug
DEBUG:root:enabled debug logs
INFO:root:in main
Options are clearly processed in the order they occur in command line but in this case I would prefer to scan command line first for --debug option since if affects logs from other switches. I tried to extract --debug option in separate class DebugOptionProcessor(cli.Application) class and then use class A(DebugOptionProcessor) but it did not change anything. Is it possible to do?
The text was updated successfully, but these errors were encountered:
Hi, it may be easier to show in code what I mean:
when run produces
Options are clearly processed in the order they occur in command line but in this case I would prefer to scan command line first for
--debug
option since if affects logs from other switches. I tried to extract--debug
option in separateclass DebugOptionProcessor(cli.Application)
class and then useclass A(DebugOptionProcessor)
but it did not change anything. Is it possible to do?The text was updated successfully, but these errors were encountered: