rejig

Command Options & Flags
Login

Command Options & Flags

In addition to the key --from/to options, rejig offers:

Run “rejig --help” to get a précis of the above.

If no input file names are given, rejig follows Pandoc in taking input from stdin instead. You can give - alone on the command line to force this, but as of version 0.41.0, it is no longer required.

The primary reason rejig does not enable --line-numbers by default is that it focuses on writing outputs that allow lossless round-tripping, enforced by a test that runs frequently during development. If rejig emitted line numbers by default, you would have to manually add these line numbers to hand-written tests merely to placate the test harness, and if you reordered lines, you’d have to manually renumber them. Plus, it would complicate blank line generation in UTF-8 output.

The same principles explain why --verbose isn’t default, and why header comments in the formats that allow them do not include frequently-changing details like timestamps or Fossil commit IDs.

Here’s an easy prediction: if a proposed change to the program’s default behavior will cause excessive test failures during development, that proposal will be rejected.

(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


  1. ^ You might now be wondering about thousands separators, but rejig has you covered: our UTF-8 input format follows the common convention in programming languages to allow underscores as a non-semantic separator in number literals, obeying an amalgam of the Go and Perl conventions on this. Please don’t ask for this to be configurable. Spaces and commas in particular would complicate the input parsers beyond any utility such a feature could justify. Further, we will not bend the rules set by other input formats; if you want group separators in them, bring the request to these formats’ creators, then notify me if they accede; I can then see about bringing rejig into alignment.