The rejig verifier mode is useful in checking that a program you are building in a text editor is syntactically correct, but what if you wanted a free slice of automatic formatting and canonicalization on the side?
This usage pattern is an overly complex way to get it:
rejig program.d32 -o tmp.d32 && mv tmp.d32 program.d32
Instead, call upon the in-place formatter:
rejig --fmt program.d32
For extra fun, do a whole menagerie at once:
rejig --fmt progs/*/*.{15c,d32,f42,p47}
In this mode, rejig infers the output format from each input file’s extension, writes to a secure temp file, and upon success atomically replaces the input.
This mode is incompatible with the --output and stdin (-) options, since it cannot discover the input file name that way.
(You may now wish to return to the rejig home page.)
License
This work is © 2026 by Warren Young and is licensed under CC BY-NC-SA 4.0