Skip to content

Commit ae7ccd1

Browse files
committed
bin/xbps-query: document the --json flag better
1 parent 8049a17 commit ae7ccd1

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

bin/xbps-query/xbps-query.1

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,22 @@ Only repositories specified in the command line via
101101
.Ar --repository
102102
will be used.
103103
.It Fl J, Fl -json
104-
Print output as json.
104+
Format the output as newline-delimited JSON objects.
105+
If the flag is specified more than once the output will be
106+
.Dq pretty-printed
107+
adding additional line breaks and indentions to the output.
108+
For each repetition two levels of indention are added.
109+
.Pp
110+
The output for the following modes will be formatted as followed:
111+
.Bl -tag -width -x -compact
112+
.It Fl l , Fl -list-pkgs
113+
.It Fl H , Fl -list-hold-pkgs
114+
.It Fl -list-repolock-pkgs
115+
.It Fl m , Fl -list-manual-pkgs
116+
.It Fl O , Fl -list-orphans
117+
JSON objects containing the package
118+
.Sx PROPERTIES .
119+
.El
105120
.It Fl M, Fl -memory-sync
106121
For remote repositories, the data is fetched and stored in memory for the current
107122
operation.

0 commit comments

Comments
 (0)