3 ms·
Almost! That will read the variable whose name is is the script argument. Also the directory argument needs a flag on my setup. It should be: python3 -mhttp.
by Y_Y 2y ago
Almost! That will read the variable whose name is is the script argument. Also the directory argument needs a flag on my setup. It should be:
python3 -mhttp.server "${1:-8080}" -d "${2:-.}"
- porridgeraisin 2y agoYep, you're right.