#31035: Promote BaseCommand.run_from_argv to a documented method
-------------------------------+--------------------------------------
Reporter: Roman Odaisky | Owner: nobody
Type: New feature | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => wontfix
Comment:
Hi Roman, thanks for the report.
I don't think this is the way forward here. `run_from_argv()` has more to
do than just invoke the subcommand here. It's mean to catch any
`CommandError`s, handle the output forwarding, etc. Override it here, you
loose all that.
I'd still point folks to overriding `handle()` as per the docs. In this
case just accessing `sys.argv` if that's what you need. That way we don't
need multiple entry points and you can catch errors, raising the expected
`CommandError` appropriately.
--
Ticket URL: <https://code.djangoproject.com/ticket/31035#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.058f34e33ff0ca6fb136320efa1366ef%40djangoproject.com.