summaryrefslogtreecommitdiff
path: root/tests/etc/t-argparse.conf
blob: 92c373deb14d3d2860e5672357de08f7a996c7e3 (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
71
72
73
74
75
76
77
78
79
80
# Global test config file for t-argparse

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


# The meta command echo simply prints the argument.  With a dash
# prefix it does not prepend the file name and line number.
[-echo Begin global config]

[-echo use $${_user} to echo the current user (${_user})]
[-echo use $${_file} to echo the current file (${_file})]
[-echo use $${_line} to echo the current line (${_line})]
[-echo use $${_epoch} to echo a timestamp (${_epoch})]

[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 but real user id ${user}]

[-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

# If uncommented The next shall raise an error due to the garbage 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]

[ignore]
output
[-ignore]


# 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]