Unverified Commit 34613383 authored by Richard Si's avatar Richard Si Committed by GitHub
Browse files

Make 'python -m black' work (#1460)

parent 91715352
Loading
Loading
Loading
Loading
+6 −0
Changes for README.md: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -58,6 +58,12 @@ To get started right away with sensible defaults:
black {source_file_or_directory}
```

You can run _Black_ as a package if running it as a script doesn't work:

```sh
python -m black {source_file_or_directory}
```

### Command line options

_Black_ doesn't provide many options. You can list them by running `black --help`:

src/black/__main__.py

0 → 100644
+3 −0
Changes for src/black/__main__.py: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
from black import patched_main

patched_main()