@@ -263,15 +263,14 @@ subroutine get_command_line_settings(cmd_settings)
263
263
& with_test= lget(' test' ), &
264
264
& with_example= lget(' example' ), &
265
265
& verbose= lget(' verbose' ) )
266
- else
266
+ else ! default if no specific directories are requested
267
267
cmd_settings= fpm_new_settings(&
268
268
& backfill= lget(' backfill' ) , &
269
269
& name= name, &
270
270
& with_executable= .true. , &
271
271
& with_lib= .true. , &
272
272
& with_test= .true. , &
273
- & with_example= .true. , &
274
- ! *!& with_example=lget('full'), &
273
+ & with_example= lget(' full' ), &
275
274
& with_full= lget(' full' ), &
276
275
& with_bare= lget(' bare' ), &
277
276
& verbose= lget(' verbose' ) )
@@ -834,7 +833,7 @@ subroutine set_help()
834
833
' o adds a ".gitignore" file for ignoring the build/ directory ' , &
835
834
' (where fpm-generated output will be placed) ' , &
836
835
' ' , &
837
- ' The basic default file structure is ' , &
836
+ ' The default file structure (that will be automatically scanned) is ' , &
838
837
' ' , &
839
838
' NAME/ ' , &
840
839
' fpm.toml ' , &
@@ -865,9 +864,9 @@ subroutine set_help()
865
864
' ASCII alphanumeric characters and underscores, ' , &
866
865
' starting with a letter. ' , &
867
866
' ' , &
868
- ' The default is to create the src/, app/, example/ and test/ ' , &
869
- ' directories. If any of the following options are specified ' , &
870
- ' then only selected subdirectories are generated: ' , &
867
+ ' The default is to create the src/, app/, and test/ directories. ' , &
868
+ ' If any of the following options are specified then only the ' , &
869
+ ' selected subdirectories are generated: ' , &
871
870
' ' , &
872
871
' --lib,--src create directory src/ and a placeholder module ' , &
873
872
' named "NAME.f90" for use with subcommand "build". ' , &
@@ -878,22 +877,24 @@ subroutine set_help()
878
877
' "--lib" it really does not have anything to test. ' , &
879
878
' --example create directory example/ and a placeholder program ' , &
880
879
' for use with the subcommand "run --example". ' , &
880
+ ' It is only created by default if "--full is" specified. ' , &
881
881
' ' , &
882
882
' So the default is equivalent to ' ,&
883
883
' ' , &
884
- ' fpm NAME --lib --app --test --example ' , &
884
+ ' fpm NAME --lib --app --test ' , &
885
885
' ' , &
886
886
' --backfill By default the directory must not exist. If this ' , &
887
887
' option is present the directory may pre-exist and ' , &
888
888
' only subdirectories and files that do not ' , &
889
889
' already exist will be created. For example, if you ' , &
890
890
' previously entered "fpm new myname --lib" entering ' , &
891
- ' "fpm new myname -- backfill" will create any missing ' , &
892
- ' app/, example/ and test/ directories and programs. ' , &
891
+ ' "fpm new myname -full -- backfill" will create any missing' , &
892
+ ' app/, example/, and test/ directories and programs. ' , &
893
893
' ' , &
894
894
' --full By default a minimal manifest file ("fpm.toml") is ' , &
895
895
' created that depends on auto-discovery. With this ' , &
896
- ' option a much more extensive manifest sample is written. ' , &
896
+ ' option a much more extensive manifest sample is written ' , &
897
+ ' and the example/ directory is created and populated. ' , &
897
898
' It is designed to facilitate creating projects that ' , &
898
899
' depend extensively on non-default build options. ' , &
899
900
' ' , &
@@ -914,6 +915,11 @@ subroutine set_help()
914
915
' fpm run # run example application program(s) ' , &
915
916
' fpm test # run example test program(s) ' , &
916
917
' fpm run --example # run example program(s) ' , &
918
+ ' ' , &
919
+ ' fpm new A --full # create example/ and an annotated fpm.toml as well' , &
920
+ ' fpm new A --bare # create no directories ' , &
921
+ ' create any missing files in current directory ' , &
922
+ ' fpm new `pwd` --full --backfill ' , &
917
923
' ' ]
918
924
help_test= [character (len= 80 ) :: &
919
925
' NAME ' , &
0 commit comments