From 92ed56ea8c831a5cc67f219421b0ad8dbad34eee Mon Sep 17 00:00:00 2001 From: Rodrigo Lourenço Date: Fri, 18 Jun 2021 22:10:27 +0100 Subject: doc: add missing options to index, info, and version --- doc/apk-version.8.scd | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'doc/apk-version.8.scd') diff --git a/doc/apk-version.8.scd b/doc/apk-version.8.scd index f0daf78..81e5cd0 100644 --- a/doc/apk-version.8.scd +++ b/doc/apk-version.8.scd @@ -25,16 +25,7 @@ considered. Otherwise, the comparison is limited to the explicitly listed packages. A summary is printed on stdout, with the difference between package versions being represented as *>*, *=*, or *<*. -*apk version -c* tests the specified version string(s) for validity and prints -a list of _invalid_ version strings. If all version strings are valid, nothing -is printed and *apk version* exits with status code zero. If one or more -version strings are invalid, the exit code is nonzero. - -*apk version -t* accepts two arbitrary version strings and compares them -without consulting the database, then prints the result as *>*, *=*, or *<*. - -*apk version -I* prints the versions and descriptions of each repository's -index. See *apk-repositories*(5) for more information. +Options *-c*, *-I*, and *-t* are mutually exclusive. # OPTIONS @@ -42,9 +33,23 @@ These options only apply when checking installed package versions against packages available from the repositories (when neither *-c*, *-t*, nor *-I* are specified). -*-a* +*-a, --all* Consider packages from all repository tags. -*-l* _operand_ +*-c, --check* _versions_... + Check versions for validity. If a given version is invalid, it is + printed. Exits with status code zero if all versions are valid, and + non-zero otherwise. + +*-I, --indexes* + Print the version and description for each repository's index. See + *apk-repositories*(5) for more information. + +*-l, --limit* _operand_ Limit to packages with output matching given _operand_. The _operand_ can be specified as any combination of *>*, *=*, and *<*. + +*-t, --test* _version1_ _version2_ + Compare two version strings. Does not consult the database. Prints one + of *>*, *=*, or *<*, if _version1_ is, respectively, greater than, + equal to, or lesser than _version2_. -- cgit v1.2.3-60-g2f50