]> pd.if.org Git - zpackage/blob - doc/zpm-parse.8
remove stray debug fprintf
[zpackage] / doc / zpm-parse.8
1 .TH zpm-parse 8 2019-02-14 "ZPM 0.3"
2 .SH NAME
3 zpm-parse \- parse a package string
4 .SH SYNOPSIS
5 .B zpm parse
6 [
7 .B -nvrE
8 ]
9 .I pkgstring
10 .SH DESCRIPTION
11 \fBzpm-parse\fR
12 parses a package string into its components and prints them separated
13 by a space to stdout.  By default, it prints the name, version, and
14 release.  The default output is equivalent to the -nvr options.
15 If a given component is not present, the corresponding field is not
16 printed.
17 .SH OPTIONS
18 .TP
19 \-n
20 print the name
21 .TP
22 \-v
23 print the version
24 .TP
25 \-r
26 print the release
27 .TP
28 \-E
29 Print the output in a form that can be evaled by a shell.  The
30 variable names are "name", "version", and "release".
31 .SH EXAMPLES
32 .TP
33 zpm parse foo-1.0-1
34 Prints "foo 1.0 1" to stdout.
35 .SH EXIT STATUS
36 0 on success non zero if the given string can't be parsed even as
37 an incomplete package string.
38 .SH FILES
39 None.
40 .SH ENVIRONMENT
41 None.
42 .SH AUTHOR
43 Nathan Wagner
44 .SH SEE ALSO
45 .BR zpm (8)