@@ -135,14 +135,17 @@ def preset_from_args(self):
135
135
args_preset .core .merge_custom ({"modules" : {"stdout" : {"event_types" : self .parsed .event_types }}})
136
136
137
137
# dependencies
138
+ deps_config = args_preset .core .custom_config .get ("deps" , {})
138
139
if self .parsed .retry_deps :
139
- args_preset . core . custom_config [ "deps_behavior " ] = "retry_failed"
140
+ deps_config [ "behavior " ] = "retry_failed"
140
141
elif self .parsed .force_deps :
141
- args_preset . core . custom_config [ "deps_behavior " ] = "force_install"
142
+ deps_config [ "behavior " ] = "force_install"
142
143
elif self .parsed .no_deps :
143
- args_preset . core . custom_config [ "deps_behavior " ] = "disable"
144
+ deps_config [ "behavior " ] = "disable"
144
145
elif self .parsed .ignore_failed_deps :
145
- args_preset .core .custom_config ["deps_behavior" ] = "ignore_failed"
146
+ deps_config ["behavior" ] = "ignore_failed"
147
+ if deps_config :
148
+ args_preset .core .merge_custom ({"deps" : deps_config })
146
149
147
150
# other scan options
148
151
if self .parsed .name is not None :
@@ -295,6 +298,12 @@ def create_parser(self, *args, **kwargs):
295
298
)
296
299
297
300
output = p .add_argument_group (title = "Output" )
301
+ output .add_argument (
302
+ "-o" ,
303
+ "--output-dir" ,
304
+ help = "Directory to output scan results" ,
305
+ metavar = "DIR" ,
306
+ )
298
307
output .add_argument (
299
308
"-om" ,
300
309
"--output-modules" ,
@@ -304,12 +313,6 @@ def create_parser(self, *args, **kwargs):
304
313
metavar = "MODULE" ,
305
314
)
306
315
output .add_argument ("-lo" , "--list-output-modules" , action = "store_true" , help = "List available output modules" )
307
- output .add_argument (
308
- "-o" ,
309
- "--output-dir" ,
310
- help = "Directory to output scan results" ,
311
- metavar = "DIR" ,
312
- )
313
316
output .add_argument ("--json" , "-j" , action = "store_true" , help = "Output scan data in JSON format" )
314
317
output .add_argument ("--brief" , "-br" , action = "store_true" , help = "Output only the data itself" )
315
318
output .add_argument ("--event-types" , nargs = "+" , default = [], help = "Choose which event types to display" )
0 commit comments