Opened 16 years ago
Closed 16 years ago
#11655 closed (worksforme)
--indent and --format in the manage.py docs is misleading
| Reported by: | anonymous | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.1 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The way it's written now, it seems like the way to have your dump indented is to do this:
./manage.py dumpdata --indent 4 myapp ...
when in actuality it's
./manage.py dumpdata --indent=4 myapp ...
so the documentation is a little misleading in that regard. It threw me for a little loop
Change History (2)
comment:1 by , 16 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 16 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I don't understand. Per the discussion of "options argument" in the python doc for optparse (what Django's using here): http://docs.python.org/library/optparse.html#terminology '--indent 4" and "--indent=4" are equivalent ways of specifying the same thing. And indeed when I try those two variants I get identical files. So I don't see what needs to be fixed here. What happened instead when you tried the first variant?