@@ -53,6 +53,7 @@ def type_bool(string):
53
53
return True
54
54
raise argparse .ArgumentTypeError ("%r is not a boolean value" % string )
55
55
56
+
56
57
_register (type , 'bool' , type_bool )
57
58
58
59
@@ -70,6 +71,7 @@ def type_shell_split(string):
70
71
lex .whitespace += ','
71
72
return list (lex )
72
73
74
+
73
75
_register (type , 'shell_split' , type_shell_split )
74
76
75
77
@@ -101,6 +103,7 @@ def type_clang_compiler_version(string):
101
103
"must be 'MAJOR.MINOR.PATCH' or "
102
104
"'MAJOR.MINOR.PATCH.PATCH'" % string )
103
105
106
+
104
107
_register (type , 'clang_compiler_version' , type_clang_compiler_version )
105
108
106
109
@@ -121,6 +124,7 @@ def type_swift_compiler_version(string):
121
124
"must be 'MAJOR.MINOR' or "
122
125
"'MAJOR.MINOR.PATCH'" % string )
123
126
127
+
124
128
_register (type , 'swift_compiler_version' , type_swift_compiler_version )
125
129
126
130
@@ -135,6 +139,7 @@ def type_executable(string):
135
139
raise argparse .ArgumentTypeError (
136
140
"%r is not executable" % string )
137
141
142
+
138
143
_register (type , 'executable' , type_executable )
139
144
140
145
# Actions --------------------------------------------------------------------
@@ -162,6 +167,7 @@ def __call__(self, parser, namespace, values, option_string=None):
162
167
arg = str (values )
163
168
parser .error ('unknown argument: %s' % arg )
164
169
170
+
165
171
_register (action , 'unavailable' , _UnavailableAction )
166
172
167
173
@@ -175,6 +181,7 @@ def __call__(self, parser, namespace, values, option_string=None):
175
181
val = old_val + values
176
182
setattr (namespace , self .dest , val )
177
183
184
+
178
185
_register (action , 'concat' , _ConcatAction )
179
186
180
187
@@ -198,4 +205,5 @@ def __init__(self,
198
205
def __call__ (self , parser , namespace , values , option_string = None ):
199
206
setattr (namespace , self .dest , values )
200
207
208
+
201
209
_register (action , 'optional_bool' , _OptionalBoolAction )
0 commit comments