Skip to content
Newer
Older
100644 39 lines (29 sloc) 1.33 KB
8dfbbfc @flying-sheep initial commit
authored Dec 11, 2012
1 reindent.py
2 ===========
3
77bd190 @flying-sheep updated readme with essential Q&A
authored Dec 11, 2012
4 The unbiased, generator-powered rewrite.
5
6
7 Q: Why is it better than the one coming with Python right now?
8 --------------------------------------------------------------
9
6e1cbce @flying-sheep moar readme
authored Dec 11, 2012
10 A: because the `-i` option of the command line interface allows you to indent with tabs or 2 spaces or whatever you prefer.
11
12 Q: What else? And how?
13 ----------------------
14
15 A:
16
17 ```
18 usage: reindent.py [-hvdnb] [-i spaces] [file [file ...]]
19
20 Reindents each input file. If none is given, code is read from stdin and
21 written to stdout. In this mode, all options except -i are ignored.
22
23 positional arguments:
24 file files (and directories) to reindent
25
26 optional arguments:
27 -h, --help show this help message and exit
28 -i spaces, --indentation spaces
29 indentation level depth. “0” means 1 tab
30 (default: 4 spaces)
31 -v, --verbose print information during run. can be used 2 times
32 (default: no output)
33 -d, --dry-run discard reindented file contents
34 (default: overwrite files)
35 -n, --no-recurse only reindent directly passed files
36 (default: also indent all scripts in passed directories)
37 -b, --no-backup prevent backup from being created
38 (default: create backup)
39 ```
Something went wrong with that request. Please try again.