#27000: Django manage Command.usage() is broken
--------------------------------------------+--------------------
Reporter: throwable-one | Owner: nobody
Type: Bug | Status: new
Component: Core (Management commands) | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------------+--------------------
This method access self.args which is not set.
How to reproduce:
{{{
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "untitled8.settings")
django.setup()
from django.core.management.commands import createcachetable
createcachetable.Command().usage("")
}}}
Result:
{{{
usage = '%%prog %s [options] %s' % (subcommand, self.args)
AttributeError: 'Command' object has no attribute 'args'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27000>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/056.d702d139be98ff1a2cc6a2fe93b498ff%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.