3 ms·
Genuinely curious about what the full script would look like in consideration of your feedback.
by DiggyJohnson 1y ago
Genuinely curious about what the full script would look like in consideration of your feedback.
- porridgeraisin 1y agopython3 -m http.server "${$1:-8080}" "${$2:-.}"
- Y_Y 1y agoAlmost! 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 1y agoYep, you're right.