Make 'python -m black' work (#1460)
This commit is contained in:
parent
91715352cd
commit
34613383ab
@ -58,6 +58,12 @@ To get started right away with sensible defaults:
|
|||||||
black {source_file_or_directory}
|
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
|
### Command line options
|
||||||
|
|
||||||
_Black_ doesn't provide many options. You can list them by running `black --help`:
|
_Black_ doesn't provide many options. You can list them by running `black --help`:
|
||||||
|
3
src/black/__main__.py
Normal file
3
src/black/__main__.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from black import patched_main
|
||||||
|
|
||||||
|
patched_main()
|
Loading…
Reference in New Issue
Block a user