summaryrefslogtreecommitdiff
path: root/src/ver.c
diff options
context:
space:
mode:
authorDubiousjim <dubiousjim@gmail.com>2013-06-27 15:28:48 -0400
committerTimo Teräs <timo.teras@iki.fi>2013-06-28 13:48:58 +0300
commitfbc4d912ab65102b7c98fa361d9df52bf01557d0 (patch)
treeb879111a1853fb8b9c3a81b70a7e7805348f66f3 /src/ver.c
parentf45aefd9619333a91dc4977144ba8305494a87a2 (diff)
downloadapk-tools-fbc4d912ab65102b7c98fa361d9df52bf01557d0.tar.gz
apk-tools-fbc4d912ab65102b7c98fa361d9df52bf01557d0.tar.bz2
apk-tools-fbc4d912ab65102b7c98fa361d9df52bf01557d0.tar.xz
apk-tools-fbc4d912ab65102b7c98fa361d9df52bf01557d0.zip
version: clarify usage
Acked-by: Natanael Copa <ncopa@alpinelinux.org>
Diffstat (limited to 'src/ver.c')
-rw-r--r--src/ver.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ver.c b/src/ver.c
index 99da504..6469db4 100644
--- a/src/ver.c
+++ b/src/ver.c
@@ -183,8 +183,8 @@ static int ver_main(void *pctx, struct apk_database *db, struct apk_string_array
static struct apk_option ver_options[] = {
{ 'I', "indexes", "Print description and versions of indexes" },
- { 't', "test", "Compare two given versions" },
- { 'c', "check", "Check if the given version string is valid" },
+ { 't', "test", "Compare two given versions, output '<', '=' or '>'" },
+ { 'c', "check", "Check the given version strings, output any that are invalid" },
{ 'a', "all", "Consider packages from all repository tags" },
{ 'l', "limit", "Limit output to packages with status matching one of LIMCHARs",
required_argument, "LIMCHARs" },
@@ -192,7 +192,8 @@ static struct apk_option ver_options[] = {
static struct apk_applet apk_ver = {
.name = "version",
- .help = "Compare package versions",
+ .help = "Compare package versions (in installed database vs. available) "
+ "or do tests on literal version strings",
.open_flags = APK_OPENF_READ,
.context_size = sizeof(struct ver_ctx),
.num_options = ARRAY_SIZE(ver_options),