Update documentation to include +N format

This commit is contained in:
Michael Oultram 2024-02-05 21:03:55 +00:00
parent cc5f679c88
commit f7c4601548
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -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.
)""

View File

@ -939,8 +939,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},
});