Skip to content

Commit 12777c2

Browse files
committed
bin/xbps-query: document format flag
1 parent 89a1704 commit 12777c2

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

bin/xbps-query/xbps-query.1

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,51 @@ If the first character is not '/' then it's a relative path of
8888
.Ar rootdir .
8989
.It Fl d, Fl -debug
9090
Enables extra debugging shown to stderr.
91+
.It Fl F, Fl -format Ar format
92+
Format for list output.
93+
.Bd -literal
94+
<substitution> ::= "{" variable ["!" conversion] [":" format] "}"
95+
<variable> ::= [a-zA-Z90-9_-]
96+
97+
<conversion> ::= humanize | strmode
98+
99+
-- Convert inode status information into a symbolic string
100+
<strmode> ::= "strmode"
101+
102+
-- Format a number into a human readable form, the default is:`humanize .8Ki`:
103+
<humanize> ::= "humanize" [space] [decimal] [width] [scale] [i]
104+
<space> ::= " " -- Put a space between number and the suffix.
105+
<decimal> ::= "." -- If the final result is less than 10, display
106+
it using one digit.
107+
<width> ::= [0-9]+ -- Width of the output.
108+
<scale> ::= multiplier -- Minimum scale multiplier and optionally
109+
[multiplier] -- Maxium scale multiplier.
110+
<multiplier> ::= "B"
111+
| "K" -- kilo
112+
| "M" -- mega
113+
| "G" -- giga
114+
| "T" -- tera
115+
| "P" -- peta
116+
| "E" -- exa
117+
<i> ::= "i" -- Divide number with 1000 instead of 1024.
118+
119+
<format> ::= [[fill] align] [sign] [width] ["." precision] [type]
120+
<fill> ::= <any char> -- The character to use when aligning the output.
121+
<align> ::= "<" -- Left align.
122+
| ">" -- Right align.
123+
| "=" -- Left align with zero paddings after the sign.
124+
<sign> ::= "+" -- Add sign to positive and negative numbers.
125+
| "-" -- Add sign to negative numbers.
126+
<width> ::= [0-9]+ -- The alignment width.
127+
<precision> ::= [0-9]+ -- Percision for numbers.
128+
<type> ::= "d" -- Decimal number.
129+
| "o" -- Octal number.
130+
| "u" -- Unsigned number.
131+
| "x" -- Hexadecimal with lowercase letters.
132+
| "X" -- Hexadecimal with uppercase letters.
133+
134+
.Ed
135+
.pp
91136
.It Fl h, Fl -help
92137
Show the help message.
93138
.It Fl i, Fl -ignore-conf-repos

0 commit comments

Comments
 (0)