OS Manuals

/usr/bin/syntax_suggest

the Ruby programming language

From ruby-3.4 3.4.12-r2 (os), captured 2026-11-05 by running syntax_suggest --help (exit 0). permalink

Usage: syntax_suggest <file> [options]

Parses a ruby source file and searches for syntax error(s) such as
unexpected `end', expecting end-of-input.

Example:

  $ syntax_suggest dog.rb

  # ...

    > 10  defdog
    > 15  end

ENV options:

  SYNTAX_SUGGEST_RECORD_DIR=<dir>

  Records the steps used to search for a syntax error
  to the given directory

Options:
        --help                       Help - displays this message
        --record <dir>               Records the steps used to search for a syntax error to the given directory
        --terminal                   Enable terminal highlighting
        --no-terminal                Disable terminal highlighting
Options (4)
OptionDescriptionSource
--helpHelp - displays this messagehelp
--record dirRecords the steps used to search for a syntax error to the given directoryhelp
--terminalEnable terminal highlightinghelp
--no-terminalDisable terminal highlightinghelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.