OS Manuals

/usr/bin/swift-indent

Swift is a high-performance system programming language. It has a clean and modern syntax, offers seamless access to existing C and Objective-C code and frameworks, and is memory-safe by default.

From swift-bootstrap-5-10-1 5.10.1-r7 (enterprise-packages), captured 2026-11-08 by running swift-indent --help (exit 1). permalink

OVERVIEW: Swift Format Tool

USAGE: swift-frontend

OPTIONS:
  -help               Display available options
  -in-place           Overwrite input file with formatted file.
  -indent-switch-case Indent cases in switch statements.
  -indent-width <n>   Number of characters to indent.
  -line-range <n:n>   <start line>:<end line>. Formats a range of lines (1-based). Can only be used with one input file.
  -o <file>           Write output to <file>
  -tab-width <n>      Width of tab character.
  -use-tabs           Use tabs for indentation.
Options (7)
OptionDescriptionSource
-helpDisplay available optionshelp
-in-placeOverwrite input file with formatted file.help
-indent-width nNumber of characters to indent.help
-line-range n:n<start line>:<end line>.help
-o fileWrite output to <file>help
-tab-width nWidth of tab character.help
-use-tabsUse tabs for indentation.help

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