@@ -90,6 +90,7 @@ module fpm_command_line
90
90
character (len= ibug),allocatable :: name (:)
91
91
character (len= :),allocatable :: args
92
92
character (len= :),allocatable :: runner
93
+ character (len= :),allocatable :: runner_args
93
94
logical :: example
94
95
end type
95
96
@@ -141,7 +142,7 @@ module fpm_command_line
141
142
& ' test' , ' runner' , ' install' , ' update' , ' list' , ' help' , ' version' , ' publish' ]
142
143
143
144
character (len= :), allocatable :: val_runner, val_compiler, val_flag, val_cflag, val_cxxflag, val_ldflag, &
144
- val_profile
145
+ val_profile, val_runner_args
145
146
146
147
! '12345678901234567890123456789012345678901234567890123456789012345678901234567890',&
147
148
character (len= 80 ), parameter :: help_text_build_common(* ) = [character (len= 80 ) :: &
@@ -268,7 +269,8 @@ subroutine get_command_line_settings(cmd_settings)
268
269
run_args = &
269
270
' --target " "' // &
270
271
' --list F' // &
271
- ' --runner " "'
272
+ ' --runner " "' // &
273
+ ' --runner-args " "'
272
274
273
275
compiler_args = &
274
276
' --profile " "' // &
@@ -322,7 +324,8 @@ subroutine get_command_line_settings(cmd_settings)
322
324
archiver = sget(' archiver' )
323
325
allocate (fpm_run_settings :: cmd_settings)
324
326
val_runner= sget(' runner' )
325
- if (specified(' runner' ) .and. val_runner==' ' )val_runner= ' echo'
327
+ val_runner_args= sget(' runner-args' )
328
+ if (specified(' runner' ) .and. val_runner==' ' )val_runner= ' echo'
326
329
cmd_settings= fpm_run_settings(&
327
330
& args= remaining,&
328
331
& profile= val_profile,&
@@ -340,6 +343,7 @@ subroutine get_command_line_settings(cmd_settings)
340
343
& build_tests= .false. ,&
341
344
& name= names,&
342
345
& runner= val_runner,&
346
+ & runner_args= val_runner_args,&
343
347
& verbose= lget(' verbose' ) )
344
348
345
349
case (' build' )
@@ -571,6 +575,7 @@ subroutine get_command_line_settings(cmd_settings)
571
575
allocate (fpm_test_settings :: cmd_settings)
572
576
val_runner= sget(' runner' )
573
577
if (specified(' runner' ) .and. val_runner==' ' )val_runner= ' echo'
578
+ val_runner_args= sget(' runner-args' )
574
579
cmd_settings= fpm_test_settings(&
575
580
& args= remaining, &
576
581
& profile= val_profile, &
@@ -588,6 +593,7 @@ subroutine get_command_line_settings(cmd_settings)
588
593
& build_tests= .true. , &
589
594
& name= names, &
590
595
& runner= val_runner, &
596
+ & runner_args= val_runner_args, &
591
597
& verbose= lget(' verbose' ) )
592
598
593
599
case (' update' )
0 commit comments