Skip to content

Commit d3c3a16

Browse files
committed
fix app args
1 parent 86e3d18 commit d3c3a16

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/fpm_command_line.f90

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,15 +323,16 @@ subroutine get_command_line_settings(cmd_settings)
323323

324324
! If there are additional command-line arguments, remove the additional
325325
! double quotes which have been added by M_CLI2
326-
call remove_characters_in_set(remaining,set='"')
326+
val_runner_args=sget('runner-args')
327+
call remove_characters_in_set(val_runner_args,set='"')
327328

328329
c_compiler = sget('c-compiler')
329330
cxx_compiler = sget('cxx-compiler')
330331
archiver = sget('archiver')
331332
allocate(fpm_run_settings :: cmd_settings)
332333
val_runner=sget('runner')
333334
if(specified('runner') .and. val_runner=='')val_runner='echo'
334-
val_runner_args=sget('runner-args')
335+
335336
cmd_settings=fpm_run_settings(&
336337
& args=remaining,&
337338
& profile=val_profile,&
@@ -577,15 +578,16 @@ subroutine get_command_line_settings(cmd_settings)
577578

578579
! If there are additional command-line arguments, remove the additional
579580
! double quotes which have been added by M_CLI2
580-
call remove_characters_in_set(remaining,set='"')
581+
val_runner_args=sget('runner-args')
582+
call remove_characters_in_set(val_runner_args,set='"')
581583

582584
c_compiler = sget('c-compiler')
583585
cxx_compiler = sget('cxx-compiler')
584586
archiver = sget('archiver')
585587
allocate(fpm_test_settings :: cmd_settings)
586588
val_runner=sget('runner')
587589
if(specified('runner') .and. val_runner=='')val_runner='echo'
588-
val_runner_args=sget('runner-args')
590+
589591
cmd_settings=fpm_test_settings(&
590592
& args=remaining, &
591593
& profile=val_profile, &

0 commit comments

Comments
 (0)