mirror of
https://github.com/dananglin/bookbot.git
synced 2024-09-18 21:12:33 +01:00
fix: executable python file
Make the Python file executable.
This commit is contained in:
parent
0f81f83a63
commit
f96eee4e47
2 changed files with 4 additions and 2 deletions
|
@ -23,7 +23,7 @@ cd bookbot
|
||||||
You can print the program's help message with the `-h` flag.
|
You can print the program's help message with the `-h` flag.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
python bookbot.py -h
|
./bookbot -h
|
||||||
```
|
```
|
||||||
|
|
||||||
Download a book in text format (e.g. txt, markdown, etc).
|
Download a book in text format (e.g. txt, markdown, etc).
|
||||||
|
@ -37,7 +37,7 @@ curl -L https://raw.githubusercontent.com/asweigart/codebreaker/master/frankenst
|
||||||
Run Bookbot to produce the book report.
|
Run Bookbot to produce the book report.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ python bookbot.py books/frankenstein.txt
|
$ ./bookbot books/frankenstein.txt
|
||||||
--- Begin report of books/frankenstein.txt ---
|
--- Begin report of books/frankenstein.txt ---
|
||||||
77986 words found in the document
|
77986 words found in the document
|
||||||
|
|
||||||
|
|
2
bookbot.py → bookbot
Normal file → Executable file
2
bookbot.py → bookbot
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Bookbot reads a book from a text file and prints out a simple report about it
|
Bookbot reads a book from a text file and prints out a simple report about it
|
||||||
to the standard output.
|
to the standard output.
|
Loading…
Reference in a new issue