@@ -135,14 +135,16 @@ 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
+ args_preset .core .merge_custom ({"deps" : deps_config })
146
148
147
149
# other scan options
148
150
if self .parsed .name is not None :
@@ -295,6 +297,12 @@ def create_parser(self, *args, **kwargs):
295
297
)
296
298
297
299
output = p .add_argument_group (title = "Output" )
300
+ output .add_argument (
301
+ "-o" ,
302
+ "--output-dir" ,
303
+ help = "Directory to output scan results" ,
304
+ metavar = "DIR" ,
305
+ )
298
306
output .add_argument (
299
307
"-om" ,
300
308
"--output-modules" ,
@@ -304,12 +312,6 @@ def create_parser(self, *args, **kwargs):
304
312
metavar = "MODULE" ,
305
313
)
306
314
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
315
output .add_argument ("--json" , "-j" , action = "store_true" , help = "Output scan data in JSON format" )
314
316
output .add_argument ("--brief" , "-br" , action = "store_true" , help = "Output only the data itself" )
315
317
output .add_argument ("--event-types" , nargs = "+" , default = [], help = "Choose which event types to display" )
0 commit comments