@@ -1361,20 +1361,38 @@ subroutine set_help()
1361
1361
' publish(1) - publish package to the registry' , &
1362
1362
' ' , &
1363
1363
' SYNOPSIS' , &
1364
- ' fpm publish [--token TOKEN]' , &
1364
+ ' fpm publish [--token TOKEN] [--show-package-version] [--show-upload-data] ' , &
1365
1365
' ' , &
1366
1366
' fpm publish --help|--version' , &
1367
1367
' ' , &
1368
1368
' DESCRIPTION' , &
1369
- ' Collect relevant source files and upload package to the registry.' , &
1370
- ' It is mandatory to provide a token. The token can be generated on the' , &
1371
- ' registry website and will be linked to your username and namespace.' , &
1369
+ ' Follow the steps to create a tarball and upload the 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 (https://fpm.fortran-lang.org/en/spec/publish.html) for' , &
1383
+ ' more information regarding the package upload.' , &
1372
1384
' ' , &
1373
1385
' OPTIONS' , &
1374
1386
' --show-package-version show package version without publishing' , &
1375
1387
' --show-upload-data show uploaded data without publishing' , &
1376
1388
' --help print this help and exit' , &
1377
1389
' --version print program version information and exit' , &
1390
+ ' ' , &
1391
+ ' EXAMPLES' , &
1392
+ ' ' , &
1393
+ ' fpm publish --show-package-version # show package version without publishing' , &
1394
+ ' fpm publish --show-upload-data # show upload data without publishing' , &
1395
+ ' fpm publish --token TOKEN # upload package to the registry using TOKEN' , &
1378
1396
' ' ]
1379
1397
end subroutine set_help
1380
1398
0 commit comments