Re: Subparsers for management commands

2023-01-15 Thread Mark Gregson
Thanks Adam, nice solution. On Sunday, 15 January 2023 at 19:23:56 UTC+10 Adam Johnson wrote: > Hi Mark > > I agree that subparsers should use the same error formatting. > > After looking at the problem a bit more, I found a solution to pass > called_from_command_line through to subparsers by ch

Re: Subparsers for management commands

2023-01-15 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Mark I agree that subparsers should use the same error formatting. After looking at the problem a bit more, I found a solution to pass called_from_command_line through to subparsers by changing CommandParser. I filed a ticket and a PR: https://code.djangoproject.com/ticket/34259#ticket Thanks