Opened 15 years ago

Closed 15 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 Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Karen Tracey, 15 years ago

Resolution: worksforme
Status: newclosed

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?

Note: See TracTickets for help on using tickets.
Back to Top