Skip to content

Commit ce846c9

Browse files
committed
disable by default
1 parent 2dbc6ee commit ce846c9

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

build.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,6 @@ def _path_from_env_var(env_var: str):
2626
env_var_value = os.environ.get(env_var)
2727
return Path(env_var_value) if env_var_value is not None else None
2828

29-
def strtobool (val):
30-
"""Convert a string representation of truth to true (1) or false (0).
31-
True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
32-
are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if
33-
'val' is anything else.
34-
"""
35-
val = str(val).lower()
36-
if val in ('y', 'yes', 't', 'true', 'on', '1'):
37-
return True
38-
elif val in ('n', 'no', 'f', 'false', 'off', '0'):
39-
return False
40-
else:
41-
raise ValueError("invalid truth value %r" % (val,))
4229

4330
def _parse_args():
4431
class Parser(argparse.ArgumentParser):
@@ -143,7 +130,7 @@ class HelpFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescript
143130

144131
parser.add_argument("--use_dml", action="store_true", help="Whether to use DML. Default is to not use DML.")
145132

146-
parser.add_argument("--use_guidance", default=True, type=strtobool, help="Whether to add guidance support. Default is True.")
133+
parser.add_argument("--use_guidance", action="store_true", help="Whether to add guidance support. Default is False.")
147134

148135
# The following options are mutually exclusive (cross compiling options such as android, ios, etc.)
149136
platform_group = parser.add_mutually_exclusive_group()

0 commit comments

Comments
 (0)