Opened 7 years ago

Closed 7 years ago

#11655 closed (worksforme)

--indent and --format in the 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: UI/UX:


The way it's written now, it seems like the way to have your dump indented is to do this:

./ dumpdata --indent 4 myapp ...

when in actuality it's

./ 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 Changed 7 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 7 years ago by kmtracey

  • Resolution set to worksforme
  • Status changed from new to closed

I don't understand. Per the discussion of "options argument" in the python doc for optparse (what Django's using here): '--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