Commit graph

7 commits

Author SHA1 Message Date
4573e170ed
test suite: use match statement where practicable (21 files) 2025-09-23 09:20:53 +00:00
abdb00f49f
Config: set opts_data['sets'] options after env and cfgfile 2025-05-26 09:39:11 +00:00
941bbdc4b5
minor cleanups, whitespace 2025-01-27 16:01:53 +00:00
df3559d420
support negated command-line options
- all options without parameters may be negated by prefixing the option name
  with ‘no-’
- if the option name itself begins with ‘no-’, then the option is negated
  by removing the ‘no-’ prefix
- negation may be used to override options set in the cfg file
- command-line options may also be overridden, with the last-listed option
  taking precedence
- as with ordinary options, substring matching is supported

Examples:

    OPTION        NEGATED OPTION
    --no-license  --license
    --no-license  --lic
    --quiet       --no-quiet
    --quiet       --no-q

Testing:

    $ test/cmdtest.py opts cfgfile
2024-10-20 10:19:02 +00:00
34deadb0f5
test suite cfgfile: cleanups 2024-10-20 10:16:23 +00:00
f9e6d994f0
whitespace: test/misc 2024-10-18 10:32:13 +00:00
c815cf4dd6
renamed: test/misc/cfg.py -> test/misc/cfg_main.py 2024-03-09 11:33:26 +00:00
Renamed from test/misc/cfg.py (Browse further)