@@ -120,7 +120,7 @@ module fpm_command_line
120
120
121
121
type, extends(fpm_build_settings) :: fpm_publish_settings
122
122
logical :: show_package_version = .false.
123
- logical :: show_form_data = .false.
123
+ logical :: show_upload_data = .false.
124
124
character (len= :), allocatable :: token
125
125
end type
126
126
@@ -620,7 +620,7 @@ subroutine get_command_line_settings(cmd_settings)
620
620
case (' publish' )
621
621
call set_args(common_args // compiler_args // ' &
622
622
& --show-package-version F &
623
- & --show-form -data F &
623
+ & --show-upload -data F &
624
624
& --token " " &
625
625
& --list F &
626
626
& --show-model F &
@@ -637,7 +637,7 @@ subroutine get_command_line_settings(cmd_settings)
637
637
allocate (fpm_publish_settings :: cmd_settings)
638
638
cmd_settings = fpm_publish_settings( &
639
639
& show_package_version = lget(' show-package-version' ), &
640
- & show_form_data = lget(' show-form -data' ), &
640
+ & show_upload_data = lget(' show-upload -data' ), &
641
641
& profile= val_profile,&
642
642
& prune= .not. lget(' no-prune' ), &
643
643
& compiler= val_compiler, &
@@ -754,7 +754,7 @@ subroutine set_help()
754
754
' install [--profile PROF] [--flag FFLAGS] [--no-rebuild] [--prefix PATH] ' , &
755
755
' [options] ' , &
756
756
' clean [--skip] [--all] ' , &
757
- ' publish [--show-package-version] [--show-form -data] [--token TOKEN] ' , &
757
+ ' publish [--show-package-version] [--show-upload -data] [--token TOKEN] ' , &
758
758
' ' ]
759
759
help_usage= [character (len= 80 ) :: &
760
760
' ' ]
@@ -878,7 +878,7 @@ subroutine set_help()
878
878
' install [--profile PROF] [--flag FFLAGS] [--no-rebuild] [--prefix PATH] ' , &
879
879
' [options] ' , &
880
880
' clean [--skip] [--all] ' , &
881
- ' publish [--show-package-version] [--show-form -data] [--token TOKEN] ' , &
881
+ ' publish [--show-package-version] [--show-upload -data] [--token TOKEN] ' , &
882
882
' ' , &
883
883
' SUBCOMMAND OPTIONS ' , &
884
884
' -C, --directory PATH' , &
@@ -958,7 +958,7 @@ subroutine set_help()
958
958
' list(1) - list summary of fpm(1) subcommands ' , &
959
959
' ' , &
960
960
' SYNOPSIS ' , &
961
- ' fpm list [-list] ' , &
961
+ ' fpm list ' , &
962
962
' ' , &
963
963
' fpm list --help|--version ' , &
964
964
' ' , &
@@ -1125,13 +1125,15 @@ subroutine set_help()
1125
1125
help_new= [character (len= 80 ) :: &
1126
1126
' NAME ' , &
1127
1127
' new(1) - the fpm(1) subcommand to initialize a new project ' , &
1128
+ ' ' , &
1128
1129
' SYNOPSIS ' , &
1129
- ' fpm new NAME [[--lib|--src] [--app] [--test] [--example]]| ' , &
1130
- ' [--full|--bare][--backfill] ' , &
1130
+ ' fpm new NAME [[--lib|--src] [--app] [--test] [--example]]| ' , &
1131
+ ' [--full|--bare][--backfill] ' , &
1131
1132
' fpm new --help|--version ' , &
1132
1133
' ' , &
1133
1134
' DESCRIPTION ' , &
1134
1135
' "fpm new" creates and populates a new programming project directory. ' , &
1136
+ ' ' , &
1135
1137
' It ' , &
1136
1138
' o creates a directory with the specified name ' , &
1137
1139
' o runs the command "git init" in that directory ' , &
@@ -1359,16 +1361,43 @@ subroutine set_help()
1359
1361
' publish(1) - publish package to the registry' , &
1360
1362
' ' , &
1361
1363
' SYNOPSIS' , &
1362
- ' fpm publish [--token TOKEN]' , &
1364
+ ' fpm publish [--token TOKEN] [--show-package-version] [--show-upload-data]' , &
1365
+ ' ' , &
1366
+ ' fpm publish --help|--version' , &
1363
1367
' ' , &
1364
1368
' DESCRIPTION' , &
1365
- ' Collect relevant source files and upload package to the registry.' , &
1366
- ' It is mandatory to provide a token. The token can be generated on the' , &
1367
- ' registry website and will be linked to your username and namespace.' , &
1369
+ ' Follow the steps to create a tarball and upload a package to the registry:' , &
1370
+ ' ' , &
1371
+ ' 1. Register on the website (https://registry-frontend.vercel.app/).' , &
1372
+ ' 2. Create a namespace. Uploaded packages must be assigned to a unique' , &
1373
+ ' namespace to avoid conflicts among packages with similar names. A' , &
1374
+ ' namespace can accommodate multiple packages.' , &
1375
+ ' 3. Create a token for that namespace. A token is linked to your username' , &
1376
+ ' and is used to authenticate you during the upload process. Do not share' , &
1377
+ ' the token with others.' , &
1378
+ ' 4. Run fpm publish --token TOKEN to upload the package to the registry.' , &
1379
+ ' But be aware that the upload is permanent. An uploaded package cannot be' , &
1380
+ ' deleted.' , &
1381
+ ' ' , &
1382
+ ' See documentation for more information regarding the package upload and usage:' , &
1383
+ ' ' , &
1384
+ ' Package upload:' , &
1385
+ ' https://fpm.fortran-lang.org/en/spec/publish.html' , &
1386
+ ' ' , &
1387
+ ' Package usage:' , &
1388
+ ' https://fpm.fortran-lang.org/en/spec/manifest.html#dependencies-from-a-registry' , &
1368
1389
' ' , &
1369
1390
' OPTIONS' , &
1370
1391
' --show-package-version show package version without publishing' , &
1371
- ' --show-form-data show sent form data without publishing' , &
1392
+ ' --show-upload-data show uploaded data without publishing' , &
1393
+ ' --help print this help and exit' , &
1394
+ ' --version print program version information and exit' , &
1395
+ ' ' , &
1396
+ ' EXAMPLES' , &
1397
+ ' ' , &
1398
+ ' fpm publish --show-package-version # show package version without publishing' , &
1399
+ ' fpm publish --show-upload-data # show upload data without publishing' , &
1400
+ ' fpm publish --token TOKEN # upload package to the registry using TOKEN' , &
1372
1401
' ' ]
1373
1402
end subroutine set_help
1374
1403
0 commit comments