@@ -172,6 +172,12 @@ subroutine get_command_line_settings(cmd_settings)
172
172
names= [character (len= max (len (names),len (tnames))) :: names,tnames]
173
173
endif
174
174
175
+ ! convert special string '..' to equivalent (shorter) '*'
176
+ ! to allow for a string that does not require shift-key and quoting
177
+ do i= 1 ,size (names)
178
+ if (names(i).eq. ' ..' )names(i)= ' *'
179
+ enddo
180
+
175
181
allocate (fpm_run_settings :: cmd_settings)
176
182
val_runner= sget(' runner' )
177
183
cmd_settings= fpm_run_settings(&
@@ -375,6 +381,12 @@ subroutine get_command_line_settings(cmd_settings)
375
381
names= [character (len= max (len (names),len (tnames))) :: names,tnames]
376
382
endif
377
383
384
+ ! convert special string '..' to equivalent (shorter) '*'
385
+ ! to allow for a string that does not require shift-key and quoting
386
+ do i= 1 ,size (names)
387
+ if (names(i).eq. ' ..' )names(i)= ' *'
388
+ enddo
389
+
378
390
allocate (fpm_test_settings :: cmd_settings)
379
391
val_runner= sget(' runner' )
380
392
cmd_settings= fpm_test_settings(&
@@ -699,16 +711,17 @@ subroutine set_help()
699
711
' are automatically rebuilt before being run if they are out of date. ' , &
700
712
' ' , &
701
713
' OPTIONS ' , &
702
- ' --target NAME(s) list of specific application names to execute. ' , &
703
- ' No name is required if only one application exists.' , &
704
- ' If no name is supplied and more than one candidate ' , &
705
- ' exists or a name has no match a list is produced ' , &
706
- ' and fpm(1) exits. ' , &
707
- ' Simple "globbing" is supported where "?" represents' , &
708
- ' any single character and "*" represents any string. ' , &
709
- ' Therefore a quoted asterisk '' *'' runs all programs. ' , &
710
- ' The special string "." also causes all targets to ' , &
711
- ' be listed, even if only a single target exists. ' , &
714
+ ' --target NAME(s) list of specific application names to execute. ' , &
715
+ ' No name is required if only one target exists. ' , &
716
+ ' If no name is supplied and more than one candidate ' , &
717
+ ' exists or a name has no match a list is produced ' , &
718
+ ' and fpm(1) exits. ' , &
719
+ ' Basic "globbing" is supported where "?" represents' , &
720
+ ' any single character and "*" represents any string. ' , &
721
+ ' The special string "." causes all targets to ' , &
722
+ ' be listed, even if only a single target exists. ' , &
723
+ ' The special string ".." causes all targets to ' , &
724
+ ' be executed. ' , &
712
725
' --example Run example programs instead of applications. ' , &
713
726
' --release selects the optimized build instead of the debug build. ' , &
714
727
' --compiler COMPILER_NAME Specify a compiler name. The default is ' , &
@@ -726,8 +739,8 @@ subroutine set_help()
726
739
' fpm(1) - run or display project applications: ' , &
727
740
' ' , &
728
741
' fpm run # run a target when only one exists or list targets ' , &
729
- ' fpm run '' *'' # run all targets ' , &
730
742
' fpm run . # list all targets, running nothing ' , &
743
+ ' fpm run .. # run all targets, no matter how many there are ' , &
731
744
' ' , &
732
745
' # run default program built or to be built with the compiler command ' , &
733
746
' # "f90". If more than one app exists a list displays and target names' , &
0 commit comments