diff options
Diffstat (limited to 'tests/etc')
-rw-r--r-- | tests/etc/t-argparse.conf | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/tests/etc/t-argparse.conf b/tests/etc/t-argparse.conf index 90b9935..4562c7c 100644 --- a/tests/etc/t-argparse.conf +++ b/tests/etc/t-argparse.conf @@ -3,11 +3,21 @@ # 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] -[group :staff] -# These option are applied to all users of the group staff up until -# the next [group] or [user] statement. + +[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 @@ -37,8 +47,9 @@ not-my-option #no-verbose -[user john ] -# Options for user john +# 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] @@ -47,13 +58,10 @@ not-my-option # Default key for user john my-option 42 -# Parsing stops for user WK here. - -[group * ] -# Options for all group which have no specific group sections above - +# Options applied only for user joy end here. [user *] -# Options for all users which have no specific user sections above +[-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 |