[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

A. Option Summary

Here is a list of all the options for indent, alphabetized by short option. It is followed by a cross key alphabetized by long option.

`-bad'
`--blank-lines-after-declarations'
Force blank lines after the declarations.
See section 1.4 Blank lines.

`-bap'
`--blank-lines-after-procedures'
Force blank lines after procedure bodies.
See section 1.4 Blank lines.

`-bbb'
`--blank-lines-before-block-comments'
Force blank lines before block comments.
See section 1.4 Blank lines.

`-bbo'
`--break-before-boolean-operator'
Prefer to break long lines before boolean operators.
See section 1.9 Breaking long lines.

`-bc'
`--blank-lines-after-commas'
Force newline after comma in declaration.
See section 1.7 Declarations.

`-bl'
`--braces-after-if-line'
Put braces on line after if, etc.
See section 1.6 Statements.

`-blin'
`--brace-indentn'
Indent braces n spaces.
See section 1.6 Statements.

`-bls'
`--braces-after-struct-decl-line'
Put braces on the line after struct declaration lines.
See section 1.7 Declarations.

`-br'
`--braces-on-if-line'
Put braces on line with if, etc.
See section 1.6 Statements.

`-brs'
`--braces-on-struct-decl-line'
Put braces on struct declaration line.
See section 1.7 Declarations.

`-bs'
`--Bill-Shannon'
`--blank-before-sizeof'
Put a space between sizeof and its argument.
See section 1.6 Statements.

`-cn'
`--comment-indentationn'
Put comments to the right of code in column n.
See section 1.5 Comments.

`-cbin'
`--case-brace-indentationn'
Indent braces after a case label N spaces.
See section 1.6 Statements.

`-cdn'
`--declaration-comment-columnn'
Put comments to the right of the declarations in column n.
See section 1.5 Comments.

`-cdb'
`--comment-delimiters-on-blank-lines'
Put comment delimiters on blank lines.
See section 1.5 Comments.

`-cdw'
`--cuddle-do-while'
Cuddle while of do {} while; and preceeding `}'.
See section 1.5 Comments.

`-ce'
`--cuddle-else'
Cuddle else and preceeding `}'.
See section 1.5 Comments.

`-cin'
`--continuation-indentationn'
Continuation indent of n spaces.
See section 1.6 Statements.

`-clin'
`--case-indentationn'
Case label indent of n spaces.
See section 1.6 Statements.

`-cpn'
`--else-endif-columnn'
Put comments to the right of #else and #endif statements in column n.
See section 1.5 Comments.

`-cs'
`--space-after-cast'
Put a space after a cast operator.
See section 1.6 Statements.

`-dn'
`--line-comments-indentationn'
Set indentation of comments not to the right of code to n spaces.
See section 1.5 Comments.

`-bfda'
`--break-function-decl-args'
Align all arguments in a declaration with opening paren.
See section 1.7 Declarations.

`-din'
`--declaration-indentationn'
Put variables in column n.
See section 1.7 Declarations.

`-fc1'
`--format-first-column-comments'
Format comments in the first column.
See section 1.5 Comments.

`-fca'
`--format-all-comments'
Do not disable all formatting of comments.
See section 1.5 Comments.

`-gnu'
`--gnu-style'
Use GNU coding style. This is the default.
See section 1.3 Common styles.

`-hnl'
`--honour-newlines'
Prefer to break long lines at the position of newlines in the input.
See section 1.9 Breaking long lines.

`-in'
`--indent-leveln'
Set indentation level to n spaces.
See section 1.8 Indentation.

`-ipn'
`--parameter-indentationn'
Indent parameter types in old-style function definitions by n spaces.
See section 1.8 Indentation.

`-kr'
`--k-and-r-style'
Use Kernighan & Ritchie coding style.
See section 1.3 Common styles.

`-ln'
`--line-lengthn'
Set maximum line length for non-comment lines to n.
See section 1.9 Breaking long lines.

`-lcn'
`--comment-line-lengthn'
Set maximum line length for comment formatting to n.
See section 1.5 Comments.

`-lp'
`--continue-at-parentheses'
Line up continued lines at parentheses.
See section 1.8 Indentation.

`-lps'
`--leave-preprocessor-space'
Leave space between `#' and preprocessor directive.
See section 1.8 Indentation.

`-nbad'
`--no-blank-lines-after-declarations'
Do not force blank lines after declarations.
See section 1.4 Blank lines.

`-nbap'
`--no-blank-lines-after-procedures'
Do not force blank lines after procedure bodies.
See section 1.4 Blank lines.

`-nbbo'
`--break-after-boolean-operator'
Do not prefer to break long lines before boolean operators.
See section 1.9 Breaking long lines.

`-nbc'
`--no-blank-lines-after-commas'
Do not force newlines after commas in declarations.
See section 1.7 Declarations.

`-nbfda'
`--dont-break-function-decl-args'
Don't put each argument in a function declaration on a seperate line.
See section 1.7 Declarations.

`-ncdb'
`--no-comment-delimiters-on-blank-lines'
Do not put comment delimiters on blank lines.
See section 1.5 Comments.

`-ncdw'
`--dont-cuddle-do-while'
Do not cuddle } and the while of a do {} while;.
See section 1.6 Statements.

`-nce'
`--dont-cuddle-else'
Do not cuddle } and else.
See section 1.6 Statements.

`-ncs'
`--no-space-after-casts'
Do not put a space after cast operators.
See section 1.6 Statements.

`-nfc1'
`--dont-format-first-column-comments'
Do not format comments in the first column as normal.
See section 1.5 Comments.

`-nfca'
`--dont-format-comments'
Do not format any comments.
See section 1.5 Comments.

`-nhnl'
`--ignore-newlines'
Do not prefer to break long lines at the position of newlines in the input.
See section 1.9 Breaking long lines.

`-nip'
`--no-parameter-indentation'
Zero width indentation for parameters.
See section 1.8 Indentation.

`-nlp'
`--dont-line-up-parentheses'
Do not line up parentheses.
See section 1.6 Statements.

`-npcs'
`--no-space-after-function-call-names'
Do not put space after the function in function calls.
See section 1.6 Statements.

`-nprs'
`--no-space-after-parentheses'
Do not put a space after every '(' and before every ')'.
See section 1.6 Statements.

`-npsl'
`--dont-break-procedure-type'
Put the type of a procedure on the same line as its name.
See section 1.7 Declarations.

`-nsaf'
`--no-space-after-for'
Do not put a space after every for.
See section 1.6 Statements.

`-nsai'
`--no-space-after-if'
Do not put a space after every if.
See section 1.6 Statements.

`-nsaw'
`--no-space-after-while'
Do not put a space after every while.
See section 1.6 Statements.

`-nsc'
`--dont-star-comments'
Do not put the `*' character at the left of comments.
See section 1.5 Comments.

`-nsob'
`--leave-optional-blank-lines'
Do not swallow optional blank lines.
See section 1.4 Blank lines.

`-nss'
`--dont-space-special-semicolon'
Do not force a space before the semicolon after certain statements. Disables `-ss'.
See section 1.6 Statements.

`-nut'
`--no-tabs'
Use spaces instead of tabs.
See section 1.8 Indentation.

`-nv'
`--no-verbosity'
Disable verbose mode.
See section 1.11 Miscellaneous options.

`-orig'
`--original'
Use the original Berkeley coding style.
See section 1.3 Common styles.

`-npro'
`--ignore-profile'
Do not read `.indent.pro' files.
See section 1.1 Invoking indent.

`-pcs'
`--space-after-procedure-calls'
Insert a space between the name of the procedure being called and the `('.
See section 1.6 Statements.

`-pin'
`--paren-indentationn'
Specify the extra indentation per open parentheses '(' when a statement is broken. See section 1.6 Statements.

`-pmt'
`--preserve-mtime'
Preserve access and modification times on output files. See section 1.11 Miscellaneous options.

`-prs'
`--space-after-parentheses'
Put a space after every '(' and before every ')'.
See section 1.6 Statements.

`-psl'
`--procnames-start-lines'
Put the type of a procedure on the line before its name.
See section 1.7 Declarations.

`-saf'
`--space-after-for'
Put a space after each for.
See section 1.6 Statements.

`-sai'
`--space-after-if'
Put a space after each if.
See section 1.6 Statements.

`-saw'
`--space-after-while'
Put a space after each while.
See section 1.6 Statements.

`-sbin'
`--struct-brace-indentationn'
Indent braces of a struct, union or enum N spaces.
See section 1.6 Statements.

`-sc'
`--start-left-side-of-comments'
Put the `*' character at the left of comments.
See section 1.5 Comments.

`-sob'
`--swallow-optional-blank-lines'
Swallow optional blank lines.
See section 1.4 Blank lines.

`-ss'
`--space-special-semicolon'
On one-line for and while statments, force a blank before the semicolon.
See section 1.6 Statements.

`-st'
`--standard-output'
Write to standard output.
See section 1.1 Invoking indent.

`-T'
Tell indent the name of typenames.
See section 1.7 Declarations.

`-tsn'
`--tab-sizen'
Set tab size to n spaces.
See section 1.8 Indentation.

`-ut'
`--use-tabs'
Use tabs. This is the default.
See section 1.8 Indentation.

`-v'
`--verbose'
Enable verbose mode.
See section 1.11 Miscellaneous options.

`-version'
Output the version number of indent.
See section 1.11 Miscellaneous options.

Options' Cross Key

Here is a list of options alphabetized by long option, to help you find the corresponding short option.

 
--blank-lines-after-commas                      -bc             
--blank-lines-after-declarations                -bad            
--blank-lines-after-procedures                  -bap            
--blank-lines-before-block-comments             -bbb            
--braces-after-if-line                          -bl             
--brace-indent                                  -bli
--braces-after-struct-decl-line                 -bls
--braces-on-if-line                             -br             
--braces-on-struct-decl-line                    -brs
--break-after-boolean-operator                  -nbbo
--break-before-boolean-operator                 -bbo
--break-function-decl-args                      -bfda
--case-indentation                              -clin     
--case-brace-indentation                        -cbin
--comment-delimiters-on-blank-lines             -cdb            
--comment-indentation                           -cn       
--continuation-indentation                      -cin      
--continue-at-parentheses                       -lp             
--cuddle-do-while                               -cdw
--cuddle-else                                   -ce             
--declaration-comment-column                    -cdn      
--declaration-indentation                       -din      
--dont-break-function-decl-args                 -nbfda
--dont-break-procedure-type                     -npsl           
--dont-cuddle-do-while                          -ncdw
--dont-cuddle-else                              -nce            
--dont-format-comments                          -nfca           
--dont-format-first-column-comments             -nfc1           
--dont-line-up-parentheses                      -nlp            
--dont-space-special-semicolon                  -nss
--dont-star-comments                            -nsc            
--else-endif-column                             -cpn
--format-all-comments                           -fca            
--format-first-column-comments                  -fc1            
--gnu-style                                     -gnu            
--honour-newlines                               -hnl
--ignore-newlines                               -nhnl
--ignore-profile                                -npro           
--indent-level                                  -in       
--k-and-r-style                                 -kr             
--leave-optional-blank-lines                    -nsob           
--leave-preprocessor-space                      -lps
--line-comments-indentation                     -dn       
--line-length                                   -ln       
--no-blank-lines-after-commas                   -nbc            
--no-blank-lines-after-declarations             -nbad           
--no-blank-lines-after-procedures               -nbap           
--no-blank-lines-before-block-comments          -nbbb           
--no-comment-delimiters-on-blank-lines          -ncdb           
--no-space-after-casts                          -ncs            
--no-parameter-indentation                      -nip            
--no-space-after-for				-nsaf
--no-space-after-function-call-names            -npcs           
--no-space-after-if				-nsai
--no-space-after-parentheses                    -nprs
--no-space-after-while				-nsaw
--no-tabs                                       -nut
--no-verbosity                                  -nv             
--original                                      -orig
--parameter-indentation                         -ipn      
--paren-indentation                             -pin
--preserve-mtime				-pmt
--procnames-start-lines                         -psl            
--space-after-cast                              -cs             
--space-after-for				-saf
--space-after-if				-sai
--space-after-parentheses                       -prs
--space-after-procedure-calls                   -pcs            
--space-after-while				-saw
--space-special-semicolon                       -ss             
--standard-output                               -st             
--start-left-side-of-comments                   -sc             
--struct-brace-indentation                      -sbin
--swallow-optional-blank-lines                  -sob            
--tab-size                                      -tsn      
--use-tabs                                      -ut
--verbose                                       -v              


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by David Ingamells on October, 16 2001 using texi2html