-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrpglefmt.1
71 lines (71 loc) · 1.82 KB
/
rpglefmt.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.TH "RPGLEFMT" "1" "2018 January"
.SH NAME
rpglefmt \- Format Free Form ILE RPG programs
.SH SYNOPSIS
.B rpglefmt
[\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]...
.SH DESCRIPTION
.PP
Format Free Form ILE RPG programs.
.TP
\fB\-d\fR
align declaration specifications that are grouped together
.TP
\fB\-dd\fR
like \fB\-d\fR but consider empty lines as part of a declaration group
.TP
\fB\-i\fR \fIindent\fR
the initial indentation in spaces. If omitted seven spaces will be used unless
the first line in the input starts with \fB**FREE\fR or if \fB\-I\fR is used.
.br
This option overrides \fB\-u\fR
.TP
\fB\-I\fR
support IceBreak extensions, see ICEBREAK below
.TP
\fB\-p\fR
count parenthesis and indent with one shiftwidth for each open parenthesis
.TP
\fB\-pp\fR
like \fB\-p\fR but if the line is broken after the first argument to a
procedure, then the next line is aligned with the first argument
.TP
\fB\-r\fR
preserve the relative indentation between multi line strings. If the first line
is indented four and the second six, then second will end up being indented two
spaces more
.TP
\fB\-s\fR \fIwidth\fR
the size in spaces for a indent
.TP
\fB\-u\fR
use the indentaion from the first input line, useful when used on part of a
file, eg. as the \fBequalprg\fR in vim
.br
This option overrides \fB\-i\fR
.TP
\fB\-h\fR
show help and exit
.TP
\fB\-v\fR
display version information
.SH ICEBREAK
.PP
When \fBrpglefmt\fR is compiled with \fBFEAT_ICEBREAK\fR, then the command line
option \fB-I\fR can be used which enabled specific handling of IceBreak
extensions.
.PP
Supported extensions are:
.TP
\[bu]
C-style multi line comments
.TP
\[bu]
IceBreak expression strings
.SH AUTHOR
Written by Andreas Louv <andreas@louv.dk>
.SH "REPORTING BUGS"
Use the GitHub bug tracker <https://github.com/andlrc/rpglefmt/issues/>
.SH "SEE ALSO"
.BR rpglectags (1),
.BR rpgledoc (1)