| 1 |
# SPDX-FileCopyrightText: Peter Pentchev <[email protected]> |
| 2 |
# SPDX-License-Identifier: CC0-1.0 |
| 3 |
|
| 4 |
# Just a test file. Or something. |
| 5 |
|
| 6 |
# Some configuration files are so simple, they do not even need sections. |
| 7 |
# The confget utility uses the concept of a "default" section - the one |
| 8 |
# that is used if the -s option is not specified. |
| 9 |
# If any key/value pairs is found in the INI file before the first section |
| 10 |
# header, they - and only they - are in the default section. |
| 11 |
# If there are no key/value pairs before the section header, then the first |
| 12 |
# section defined is considered to be the default. |
| 13 |
|
| 14 |
# In this file, the following two pairs will be in the default section, |
| 15 |
# and they may be obtained by "confget -f t2.ini key1 key2". |
| 16 |
key1=1 |
| 17 |
key2=2 |
| 18 |
|
| 19 |
# In the t1.ini file, there are no key/value pairs before the first |
| 20 |
# section header, so the first section - "a" - will be the default, |
| 21 |
# and "confget -f t1.ini key1" would return "value1". |
| 22 |
|
| 23 |
# The following values of key1 and key2 may only be obtained by specifying |
| 24 |
# the section name: "confget -f t2.ini -s sec1 key1 key2". |
| 25 |
[sec1] |
| 26 |
key1=3 |
| 27 |
key2=4 |