Skip to content

Commit cf9ccbd

Browse files
committed
Add named arguments, Remove -o flag
1 parent 4740416 commit cf9ccbd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

builder/build_cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def main(root):
103103
"-c", "--clear", help="disable incremental builds", action="store_true"
104104
)
105105
parser.add_argument(
106-
"-o",
107106
"--offline",
108107
help="build in offline mode",
109108
action="store_true",

exts/coding_guidelines/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ def merge_domaindata(self, docnames, other):
3535
def setup(app):
3636

3737
app.add_domain(CodingGuidelinesDomain)
38-
app.add_config_value("offline", False, "env") # register the offline option
38+
app.add_config_value(
39+
name = "offline",
40+
default=False,
41+
rebuild= "env"
42+
) # register the offline option
3943
app.add_config_value(
4044
name="spec_std_docs_url",
4145
default="https://doc.rust-lang.org/stable/std",

0 commit comments

Comments
 (0)