runlisp.c: Undefine local option-parsing macros at the end of the block.
[runlisp] / query-runlisp-config.1.in
CommitLineData
8996f767
MW
1.\" -*-nroff-*-
2.\"
3.\" Manual for `query-runlisp-config'
4.\"
5.\" (c) 2020 Mark Wooding
6.\"
7.
8.\"----- Licensing notice ---------------------------------------------------
9.\"
10.\" This file is part of Runlisp, a tool for invoking Common Lisp scripts.
11.\"
12.\" Runlisp is free software: you can redistribute it and/or modify it
13.\" under the terms of the GNU General Public License as published by the
14.\" Free Software Foundation; either version 3 of the License, or (at your
15.\" option) any later version.
16.\"
17.\" Runlisp is distributed in the hope that it will be useful, but WITHOUT
18.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20.\" for more details.
21.\"
22.\" You should have received a copy of the GNU General Public License
23.\" along with Runlisp. If not, see <https://www.gnu.org/licenses/>.
24..
25.ie t \{\
26. ds o \(bu
27. if \n(.g \{\
28. fam P
29. ev an-1
30. fam P
31. ev
32. \}
33.\}
34.el \{\
35. ds o o
36.\}
37.
38.de hP
39.IP
40\h'-\w'\fB\\$1\ \fP'u'\fB\\$1\ \fP\c
41..
42.
43.\"--------------------------------------------------------------------------
44.TH query-runlisp-config 1 "2 August 2020" "Mark Wooding"
45.SH NAME
46query-runlisp-config \- inspect and debug runlisp configuration files
47.
48.\"--------------------------------------------------------------------------
49.SH SYNOPSIS
50.
51.B query-runlisp-config
b27b366b
MW
52.RB [ \-LMqv ]
53.RB [ +M ]
8996f767
MW
54.RB [ \-c
55.IR conf ]
56.RB [ \-o
57.RI [ sect \c
58.BR : ] \c
59.IB var = \c
60.IR value ]
61.br
8ed4c352 62 \c
8996f767
MW
63.RB [ \-l
64.IR sect ]
65.RB [ \-p
66.RI [ sect \c
67.BR : ] \c
68.IR var ]
69.RB [ \-w
70.RI [ sect \c
71.BR : ] \c
72.IR var ]
73.RB [ \-x
74.RI [ sect \c
75.BR : ] \c
76.IR var ]
77.
78.\"--------------------------------------------------------------------------
79.SH DESCRIPTION
80.
81The
82.B query-runlisp-config
83program assists with understanding and debugging
84.BR runlisp.conf (5)
85files.
86.
87.SS "Options"
88The command-line options are as follows.
89.
90.TP
91.BR "\-h" ", " "\-\-help"
92Write a synopsis of
93.BR query-runlisp-config 's
94command-line syntax
95and a description of the command-line options
96to standard output
97and immediately exit with status 0.
98.
99.TP
100.BR "\-V" ", " "\-\-version"
101Write
102.BR query-runlisp-config 's
103version number
104to standard output
105and immediately exit with status 0.
106.
107.TP
108.BR "\-L" ", " "\-\-list-sections"
109List all of the known section names to standard output.
110.
111.TP
b27b366b
MW
112.BR "\-M" ", " "\-\-machine-readable"
113Don't print prefixes or header lines to the output.
114This makes it easier to use
115.B query-runlisp-config
116from simple scripts.
117Negate with
118.B +M
119or
120.BR \-\-no-machine-readable .
121.
122.TP
8996f767
MW
123.BI "\-c" "\fR, " "\-\-config-file=" conf
124Read configuration from
125.IR conf .
126If
127.I conf
128is a directory, then all of the files within
129whose names end with
130.RB ` .conf ',
131are loaded, in ascending lexicographical order;
132otherwise,
133.I conf
134is opened as a file.
af677646 135All of the files are expected to be as described in
8996f767
MW
136.BR runlisp.conf (5).
137.
138.TP
139.BI "\-l" "\fR, " "\-\-list-variables=" sect
140List all of the variables assigned in section
141.I sect
142to standard output.
143.
144.TP
145.BI "\-o" "\fR, " "\-\-set-option=\fR[" sect :\fR] var = value
146Assign
147.I value
148to the variable
149.I var
150in configuration section
151.IR sect ,
152or
153.B @CONFIG
154if no section is specified.
155The value is unexpandable,
156and overrides any similarly named setting
157from the configuration file(s).
158.
10427eb2
MW
159.TP
160.BI "\-p" "\fR, " "\-\-print-variable=\fR[" sect :\fR] var
161Print the raw (unexpanded) result of looking up the variable
162.I var
163in configuration section
164.I sect
165(defaulting to
166.BR @CONFIG ).
8996f767 167.
10427eb2
MW
168.TP
169.BR "\-q" ", " "\-\-quiet"
170Don't print warning messages.
171This option may be repeated:
172each use reduces verbosity by one step,
173counteracting one
174.RB ` \-v '
175option.
176The default verbosity level is 1,
177which prints only warning measages.
178.
179.TP
180.BR "\-v" ", " "\-\-verbose"
181Print informational or debugging messages.
182This option may be repeated:
183each use increases verbosity by one step,
184counteracting one
185.RB ` \-q '
186option.
187The default verbosity level is 1,
188which prints only warning measages.
189Higher verbosity levels print informational and debugging messages.
8996f767 190.
10427eb2
MW
191.TP
192.BI "\-w" "\fR, " "\-\-split-variable=\fR[" sect :\fR] var
193Print the result of looking up, expanding, and word-splitting the variable
194.I var
195in configuration section
196.I sect
197(defaulting to
198.BR @CONFIG ).
199The words are quoted in shell-style, and separated by spaces.
200.
201.TP
202.BI "\-x" "\fR, " "\-\-expand-variable=\fR[" sect :\fR] var
203Print the result of looking up and expanding the variable
204.I var
205in configuration section
206.I sect
207(defaulting to
208.BR @CONFIG ).
209.
210.\"--------------------------------------------------------------------------
8996f767
MW
211.
212.SH SEE ALSO
213.BR dump-runlisp-image (1),
214.BR query-runlisp-config (1),
215.BR runlisp (1).
216.
217.SH AUTHOR
218Mark Wooding, <mdw@distorted.org.uk>
219.
220.
221.\"----- That's all, folks --------------------------------------------------