ck3-save-updater

Output and verbosity

How much it says

Every command takes -v and -q, and they can be repeated:

--show CHANNEL:LEVEL raises a single part of the output, e.g. --show transplant:1. The parts are rules, transplant, lint, io and timing. Where there is no command line to add flags to (a script, a scheduler), the environment does the same: CK3SM_VERBOSITY (a number, or a level name such as extra) and CK3SM_SHOW (e.g. transplant:1,timing:1). To keep a setting for every run, put it in the settings file: [output] then show = ["transplant:-1"] (Configuration). For each channel, --show wins over CK3SM_SHOW, which wins over the file.

Results go to standard output; warnings, errors and the extra detail go to standard error. The --report JSON is the same at every level.

-v and -q count the same whether they come before or after the command: -v migrate, migrate -v and -v migrate -v (which is -vv) all work.

The parts of the output

Part What it carries Where it goes
rules the rules applied and their counts; the rules listing standard output
transplant the new-map transplant’s plan and write counts (R14 to R17) standard error
lint the checks’ verdict and findings standard output
io reading and writing saves: what was written, sizes, hashes standard output
timing time taken per rule standard error
gamediff what a game update changed (the gamediff command) standard output

Warnings and errors go to standard error whatever part they belong to.

Where results go