summaryrefslogtreecommitdiff
path: root/tests/etc/t-argparse.conf
blob: 4562c7ce9a7a293fa16471b10abe878d2d7c4fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Global test config file for t-argparse

# Options applied to all user's config files
#verbose

# The meta comman decho simply prints the argument.  With a hash
# prefix it does not prepend the file name and line number.  For
# future compatibility do not use doallar signs.
[-echo Begin global config]
[verbose]

[user joy]
# All the following options are applied only if the current user's
# account name is "joy" (case-insensitive).  This ends with the next
# user statement.  This does not affect "echo" and "verbose".

# info is an alias for echo but only executed if a user secion is active.
# For future compatibility do not use percent or dollar signs.
[-info In user Joy]

[-verbose]
[+force]
# All following option are forced and thus ignored when set in user
# config files.  Valid until the next [user] statement.  Take care
# that there are often "no-", "disable-", or "enable-" versions of
# options; these should be explictly marked as ignored so that they
# can't be used to override the force attribute.

[ignore]

# The compliance is set immutable for these users
verbose

[-force]
not-my-option

# The next shall raise an error due to the garpage at the end.
#<off>[+ignore]   fooo


[+ignore-all]
# All options are ignored.


[-ignore]  # Comment at  line end
# Options wich shall not be ignored.  */
#no-verbose


# Options applied only for user joy end here.
[user wk ]
[-info Options applied only for user wk follow]

# Change the immutable attribute back to mutable.
[-force]
#compliance gnupg

# Default key for user john
my-option 42

# Options applied only for user joy end here.
[user *]
[-info All the following options are applied only if the]
[-info current user has no specific section above.]

# The default algorithm for new keys is set to this.
a-long-option


[-echo End global config]