Skip to content

Commit 8b72f2b

Browse files
cortesikernc
authored andcommitted
Minor cleanup: we no longer cache anything, so remove related options
1 parent b52c41b commit 8b72f2b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pdoc/cli.py

-9
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import re
1717
import subprocess
1818
import sys
19-
import tempfile
2019

2120
import pdoc
2221

@@ -27,7 +26,6 @@
2726
xrange = range
2827

2928
version_suffix = "%d.%d" % (sys.version_info[0], sys.version_info[1])
30-
default_http_dir = path.join(tempfile.gettempdir(), "pdoc-%s" % version_suffix)
3129

3230
parser = argparse.ArgumentParser(
3331
description="Automatically generate API docs for Python modules.",
@@ -111,12 +109,6 @@
111109
"of all installed modules. Only modules found in PYTHONPATH will be "
112110
"listed.",
113111
)
114-
aa(
115-
"--http-dir",
116-
type=str,
117-
default=default_http_dir,
118-
help="The directory to cache HTML documentation when running as an HTTP " "server.",
119-
)
120112
aa(
121113
"--http-host",
122114
type=str,
@@ -468,7 +460,6 @@ def cli():
468460
if args.http:
469461
args.html = True
470462
args.external_links = True
471-
args.html_dir = args.http_dir
472463
args.overwrite = True
473464
args.link_prefix = "/"
474465

0 commit comments

Comments
 (0)