File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ def do_add_parser(self, parser_adder):
77
77
help = '''format string to use to list each blob;
78
78
see FORMAT STRINGS below''' )
79
79
80
+ group = parser .add_argument_group ('west blobs fetch options' )
81
+ group .add_argument ('-a' , '--auto-accept' , action = 'store_true' ,
82
+ help = '''auto accept license if the fetching needs click-through''' )
83
+
80
84
return parser
81
85
82
86
def get_blobs (self , args ):
@@ -154,7 +158,7 @@ def fetch(self, args):
154
158
continue
155
159
self .inf ('Fetching blob {module}: {abspath}' .format (** blob ))
156
160
157
- if blob ['click-through' ]:
161
+ if blob ['click-through' ] and not args . auto_accept :
158
162
while True :
159
163
user_input = input ("For this blob, need to read and accept "
160
164
"license to continue. Read it?\n "
You can’t perform that action at this time.
0 commit comments