Changing flag back for backwards compatability
This commit is contained in:
parent
84a2349651
commit
4157a7b167
|
@ -574,7 +574,7 @@ def run_server() -> None:
|
||||||
"""
|
"""
|
||||||
parser = command_line_parser()
|
parser = command_line_parser()
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--root-dir", help="Root path on the filesystem to serve", default="/var/gemini"
|
"--dir", help="Root path on the filesystem to serve", default="/var/gemini"
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--cgi-dir",
|
"--cgi-dir",
|
||||||
|
@ -586,7 +586,7 @@ def run_server() -> None:
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
app = StaticDirectoryApplication(args.root_dir, args.index_file, args.cgi_dir)
|
app = StaticDirectoryApplication(args.dir, args.index_file, args.cgi_dir)
|
||||||
server = GeminiServer(
|
server = GeminiServer(
|
||||||
host=args.host,
|
host=args.host,
|
||||||
port=args.port,
|
port=args.port,
|
||||||
|
|
Loading…
Reference in New Issue