Skip to content
Prev Previous commit
Next Next commit
add documentation for --default-file option in pyscript run
  • Loading branch information
jdw170000 committed May 22, 2024
commit a47a2448029e74752cd0b7fc01f87e58f4ad945c
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ To avoid opening a browser window, use `--no-view` option.
$ pyscript run <path_of_folder> --no-view
```

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.

```shell
pyscript run <path_of_folder> --default-file <name of default file>
```

### create

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