Skip to main content

USAGE

Constant USAGE 

Source
pub const USAGE: &str = "\
rucc, an optimizing C compiler

usage: rucc [options] file...

options:
  -c                     compile and assemble, do not link
  -S                     compile only, emit assembly
  -E                     preprocess only
  -o <file>              write output to <file>
  -x <lang>              treat later inputs as <lang>, or none to stop
  -O<level>              optimize: 0, 1, 2, 3, s, z
  -g                     emit debug information
  -Werror                treat warnings as errors
  -j[n]                  compile n translation units at once, default all
  -v                     print each phase as it runs
  -###                   print the phases without running any of them
  --target=<triple>      generate code for <triple>
  --emit=<kind>          exe, obj, asm, preprocessed, tast, ir, mir-final
  --print-config         print the resolved configuration and exit
  --version              print the version and exit
  -h, --help             print this message and exit

See spec/04-driver-and-cli.md for the full flag reference.
";
Expand description

Usage text.

Deliberately short. spec/04-driver-and-cli.md puts the full flag reference in the manual page, because a --help nobody can read in one screen is a --help nobody reads.