Skip to content

Commit

Permalink
Update documentation to include +N format
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelOultram committed Feb 27, 2024
1 parent 4fdd510 commit e9b602e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/nix/profile-wipe-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ R""(
This command deletes non-current versions of a profile, making it
impossible to roll back to these versions. By default, all non-current
versions are deleted. With `--older-than` *N*`d`, all non-current
versions older than *N* days are deleted.
versions older than *N* days are deleted. With `--older-than` `+`*N*,
*N* older versions than the current version will be kept, the rest
removed.

)""
4 changes: 2 additions & 2 deletions src/nix/profile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,8 @@ struct CmdProfileWipeHistory : virtual StoreCommand, MixDefaultProfile, MixDryRu
.longName = "older-than",
.description =
"Delete versions older than the specified age. *age* "
"must be in the format *N*`d`, where *N* denotes a number "
"of days.",
"must be in the format *N*`d` or `+`*N* where *N* denotes a number. "
"Use `d` for days and `+` for absolute number to keep.",
.labels = {"age"},
.handler = {&minAge},
});
Expand Down

0 comments on commit e9b602e

Please sign in to comment.