Skip to content

Commit a47a244

Browse files
committed
add documentation for --default-file option in pyscript run
1 parent 4ca4659 commit a47a244

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ To avoid opening a browser window, use `--no-view` option.
6969
$ pyscript run <path_of_folder> --no-view
7070
```
7171

72+
To serve a default file (e.g., `index.html`) instead of a 404 HTTP status when a nonexistent file is accessed, use `--default-file` option.
73+
74+
```shell
75+
pyscript run <path_of_folder> --default-file <name of default file>
76+
```
77+
7278
### create
7379

7480
#### Create a new pyscript project with the passed in name, creating a new directory

0 commit comments

Comments
 (0)