Opened 12 years ago
Closed 12 years ago
#21542 closed Uncategorized (duplicate)
optparse is deprecated, use argparse instead
| Reported by: | donturner | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.6 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
On the following page:
https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
The command line example uses import optparse. The optparse module is deprecated as per: http://docs.python.org/2.7/library/optparse.html#module-optparse
Suggestion is to update the example to use argparse instead.
Note:
See TracTickets
for help on using tickets.
Duplicate of #19973