Add command-line options to rewrite all refs, or just specify one.