Skip to content

Commit 56da54f

Browse files
committed
Add to fpm clean
1 parent cc2a568 commit 56da54f

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

src/fpm.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,8 @@ subroutine delete_skip(is_unix)
679679
end do
680680
end subroutine delete_skip
681681

682-
!> Delete the build directory including or excluding dependencies.
682+
!> Delete the build directory including or excluding dependencies. Can be used
683+
!> to clear the registry cache.
683684
subroutine cmd_clean(settings)
684685
!> Settings for the clean command.
685686
class(fpm_clean_settings), intent(in) :: settings

src/fpm_command_line.f90

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ subroutine set_help()
764764
' [--list] [--compiler COMPILER_NAME] [-- ARGS] ', &
765765
' install [--profile PROF] [--flag FFLAGS] [--no-rebuild] [--prefix PATH] ', &
766766
' [options] ', &
767-
' clean [--skip] [--all] ', &
767+
' clean [--skip] [--all] [--registry-cache] ', &
768768
' publish [--token TOKEN] [--show-package-version] [--show-upload-data] ', &
769769
' [--dry-run] [--verbose] ', &
770770
' ']
@@ -889,7 +889,7 @@ subroutine set_help()
889889
' list [--list] ', &
890890
' install [--profile PROF] [--flag FFLAGS] [--no-rebuild] [--prefix PATH] ', &
891891
' [options] ', &
892-
' clean [--skip] [--all] ', &
892+
' clean [--skip] [--all] [--registry-cache] ', &
893893
' publish [--token TOKEN] [--show-package-version] [--show-upload-data] ', &
894894
' [--dry-run] [--verbose] ', &
895895
' ', &
@@ -901,12 +901,15 @@ subroutine set_help()
901901
help_text_flag, &
902902
' --list List candidates instead of building or running them. On ', &
903903
' the fpm(1) command this shows a brief list of subcommands.', &
904-
' --runner CMD Provides a command to prefix program execution paths. ', &
904+
' --runner CMD Provides a command to prefix program execution paths. ', &
905905
' -- ARGS Arguments to pass to executables. ', &
906906
' --skip Delete directories in the build/ directory without ', &
907-
' prompting, but skip dependencies. ', &
907+
' prompting, but skip dependencies. Cannot be used together ', &
908+
' with --all. ', &
908909
' --all Delete directories in the build/ directory without ', &
909-
' prompting, including dependencies. ', &
910+
' prompting, including dependencies. Cannot be used together', &
911+
' with --skip. ', &
912+
' --registry-cache Delete registry cache. ', &
910913
' ', &
911914
'VALID FOR ALL SUBCOMMANDS ', &
912915
' --help Show help text and exit ', &
@@ -1364,10 +1367,12 @@ subroutine set_help()
13641367
'DESCRIPTION', &
13651368
' Prompts the user to confirm deletion of the build. If affirmative,', &
13661369
' directories in the build/ directory are deleted, except dependencies.', &
1370+
' Use the --registry-cache option to delete the registry cache.', &
13671371
'', &
13681372
'OPTIONS', &
1369-
' --skip delete the build without prompting but skip dependencies.', &
1370-
' --all delete the build without prompting including dependencies.', &
1373+
' --skip Delete the build without prompting but skip dependencies.', &
1374+
' --all Delete the build without prompting including dependencies.', &
1375+
' --registry-cache Delete registry cache.', &
13711376
'' ]
13721377
help_publish=[character(len=80) :: &
13731378
'NAME', &

0 commit comments

Comments
 (0)