Skip to content

Commit e9ce01f

Browse files
committed
Add named arguments, Remove -o flag
1 parent f1f141d commit e9ce01f

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
@@ -115,7 +115,6 @@ def main(root):
115115
"-c", "--clear", help="disable incremental builds", action="store_true"
116116
)
117117
parser.add_argument(
118-
"-o",
119118
"--offline",
120119
help="build in offline mode",
121120
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)