Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maxim Karasev
aports
Commits
fbc4d912
Commit
fbc4d912
authored
11 years ago
by
Jim Pryor
Committed by
Timo Teräs
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
version: clarify usage
Acked-by:
Natanael Copa
<
ncopa@alpinelinux.org
>
parent
f45aefd9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ver.c
+4
-3
4 additions, 3 deletions
src/ver.c
with
4 additions
and
3 deletions
src/ver.c
+
4
−
3
View file @
fbc4d912
...
...
@@ -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 string
s, output any that are in
valid"
},
{
'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
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment