# 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. #[+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]