Julia 1.11 and later have the option to invoke a package's main function with the -m flag, e.g. julia -m LiveServer <args>.... This patch adds a main function to LiveServer.
Output of julia -m LiveServer --help:
NAME
LiveServer.main - run a webserver
SYNOPSIS
julia -m LiveServer [-h <host>] [-p <port>] [-v] [--help] <directory>
DESCRIPTION
`LiveServer.main` (typically invoked as `julia -m LiveServer`)
starts a web server serving the contents of the specified
filesystem directory using the LiveServer.jl Julia package.
OPTIONS
<directory>
Path to the root directory of the server (default: pwd)
-h <host>
Specify the host (default: 127.0.0.1)
-p <port>
Specify the port (default: 8000)
-v
Enable verbose output
--help
Show this message
Julia 1.11 and later have the option to invoke a package's
main
function with the-m
flag, e.g.julia -m LiveServer <args>...
. This patch adds a main function to LiveServer.Output of
julia -m LiveServer --help
: