@@ -26,19 +26,6 @@ def _path_from_env_var(env_var: str):
26
26
env_var_value = os .environ .get (env_var )
27
27
return Path (env_var_value ) if env_var_value is not None else None
28
28
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 ,))
42
29
43
30
def _parse_args ():
44
31
class Parser (argparse .ArgumentParser ):
@@ -143,7 +130,7 @@ class HelpFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescript
143
130
144
131
parser .add_argument ("--use_dml" , action = "store_true" , help = "Whether to use DML. Default is to not use DML." )
145
132
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 ." )
147
134
148
135
# The following options are mutually exclusive (cross compiling options such as android, ios, etc.)
149
136
platform_group = parser .add_mutually_exclusive_group ()
0 commit comments