-h, --help | Show summary of usage and exit. | help + man |
-opath, --output-path path | When perltidy creates a filename for an output file, by default it merely appends an extension to the path and basename of the input file. | help + man |
-b, --backup-and-modify-in-place | Modify the input file or files in-place and save the original with the extension .bak. | help + man |
-q, --quiet | Deactivate error messages (for running under an editor). | help + man |
-w, --warning-output | Setting -w causes any non-critical warning messages to be reported as errors. | help + man |
-log, --logfile | Save the .LOG file, which has many useful diagnostics. | help + man |
-f, --force-read-binary | Force perltidy to process binary files. | help + man |
-g, --logfile-gap n | like -log but writes more detailed .LOG file, for debugging scripts | help + man |
-opt, --show-options | write the set of options actually used to a .LOG file | help + man |
-npro --noprofile | ignore .perltidyrc configuration command file | help + man |
-pro, --profile file | To simplify testing and switching .perltidyrc files, this command may be used to specify a configuration file which will override the default name of .perltidyrc. | help + man |
-st, --standard-output | Perltidy must be able to operate on an arbitrarily large number of files in a single run, with each output being directed to a different output file. | help + man |
-se, --standard-error-output | If perltidy detects an error when processing file somefile.pl, its default behavior is to write error messages to file somefile.pl.ERR. | help + man |
-v, --version | display version number to standard output and quit | help + man |
-i, --indent-columns n | Use n columns per indentation level (default n=4). | help + man |
-t, --tabs | This flag causes one leading tab character to be inserted for each level of indentation. | help + man |
-nt | no tabs: use n spaces per indentation level (default) | help |
-et, --entab-leading-whitespace n | This flag causes each n leading space characters produced by the formatting process to be replaced by one tab character. | help + man |
-io, --indent-only | This flag is used to deactivate all whitespace and line break changes within non-blank lines of code. | help + man |
-sil n | By default, perltidy examines the input file and tries to determine the starting indentation level. | help + man |
-ole, --output-line-ending s | specify output line ending (s=dos or win, mac, unix) | help + man |
-ple, --preserve-line-endings | This flag tells perltidy to write its output files with the same line endings as the input file, if possible. | help + man |
-fws, --freeze-whitespace | This flag causes your original whitespace to remain unchanged, and causes the rest of the whitespace commands in this section, the Code Indentation section, and the Comment Control section to be… | help + man |
-bt n | sets brace tightness, n= (0 = loose, 1=default, 2 = tight) | help |
-bbt | same as -bt but for code block braces; | help |
-bbvt, --block-brace-vertical-tightness n | The -bbvt=n flag is just like the -vt=n flag but applies to opening code block braces. | help + man |
-bbvtl s | make -bbvt to apply to selected list of block types | help |
-pt n | paren tightness (n=0, 1 or 2) | help |
-sbt n | square bracket tightness (n=0, 1, or 2) | help |
-bvt n | brace vertical tightness, n=(0=open, 1=close unless multiple steps on a line, 2=always close) | help |
-pvt n | paren vertical tightness (see -bvt for n) | help |
-ci, --continuation-indentation n | Continuation indentation is extra indentation spaces applied when a long line is broken. | help + man |
-lp | line up parentheses, brackets, and non-BLOCK braces | help |
-sfs, --space-for-semicolon | Semicolons within for loops may sometimes be hard to see, particularly when commas are also present. | help + man |
-aws, --add-whitespace | Setting this option allows perltidy to add certain whitespace to improve code readability. | help + man |
-dws, --delete-old-whitespace | Setting this option allows perltidy to remove optional whitespace between characters in the input file. | help + man |
-icb, --indent-closing-brace | The -icb option gives one extra level of indentation to a brace which terminates a code block . | help + man |
-cti, --closing-token-indentation n | closing indentation of paren, square bracket, or non-block brace: n=0 none, =1 align with opening, =2 one full indentation level | help + man |
-icp, --indent-closing-paren | The -icp flag is equivalent to -cti=2, described in the previous section. | help + man |
-wls, --want-left-space s | want space left of tokens in string; | help + man |
-wrs, --want-right-space s | want space right of tokens in string; | help + man |
-sts, --space-terminal-semicolon | Some programmers prefer a space before all terminal semicolons. | help + man |
-sak, --space-after-keyword s | put space between keywords given in s and '('; | help + man |
-fnl, --freeze-newlines | If you do not want any changes to the line breaks within lines of code in your script, set -fnl, and they will remain fixed, and the rest of the commands in this section and sections "Controlling… | help + man |
-anl, --add-newlines | By default, perltidy will add line breaks when necessary to create continuations of long lines and to improve the script appearance. | help + man |
-bbs, --blanks-before-subs | For compatibility with previous versions, -bbs or --blanks-before-subs is equivalent to -blbp=1 and -blbs=1. | help + man |
-bbc, --blanks-before-comments | This parameter allows perltidy to introduce a new blank line before a full-line comment to improve readability. | help + man |
-bbb, --blanks-before-blocks | A blank line will be introduced before blocks of coding delimited by for, foreach, while, until, and if, unless, in the following circumstances: | help + man |
-kbl, --keep-old-blank-lines n | The -kbl=n flag gives you control over how your existing blank lines are treated. | help + man |
-mbl n | This parameter specifies the maximum number of consecutive blank lines which will be output within code sections of a script. | help + man |
-ce, --cuddled-else | Enable the "cuddled else" style, in which "else" and "elsif" are follow immediately after the curly brace closing the previous block. | help + man |
-cb, --cuddled-blocks | This flag is equivalent to --cuddled-else (-ce). | help + man |
-cbl, --cuddled-block-list s | The built-in default cuddled block types are else, elsif, continue, catch, finally. | help + man |
-dnl, --delete-old-newlines | By default, perltidy first deletes all old line break locations, and then it looks for good break points to match the desired line length. | help + man |
-l, --maximum-line-length n | The default maximum line length is n=80 characters. | help + man |
-bl, --opening-brace-on-new-line, --brace-left | Use the flag -bl to place an opening block brace on a new line: | help + man |
-sbl, --opening-sub-brace-on-new-line | The flag -sbl provides a shortcut way to turn on -bl just for named subs. | help + man |
-bli, --brace-left-and-indent | The flag -bli is similar to the -bl flag but in addition it causes one unit of continuation indentation ( see --continuation-indentation ) to be placed before an opening and closing block braces. | help + man |
-bar, --opening-brace-always-on-right | The default style, -nbl places the opening code block brace on a new line if it does not fit on the same line as the opening keyword, like this: | help + man |
-vt n | vertical tightness (requires -lp); | help |
-vtc n | vertical tightness of closing container; | help |
-wba, --want-break-after s | want break after tokens in string; | help + man |
-wbb, --want-break-before s | These parameters are each followed by a quoted string, s, containing a list of token types (separated only by spaces). | help + man |
-wn, --weld-nested-containers | The -wn flag causes closely nested pairs of opening and closing container symbols (curly braces, brackets, or parens) to be "welded" together, meaning that they are treated as if combined into a… | help + man |
-kis, --keep-interior-semicolons | Use the -kis flag to prevent breaking at a semicolon if there was no break there in the input file. | help + man |
-boc, --break-at-old-comma-breakpoints | The -boc flag is another way to prevent comma-separated lists from being reformatted. | help + man |
-bol, --break-at-old-logical-breakpoints | By default, if a logical expression within a container is broken at a "&&", "||", "and", or "or", then the container will remain broken. | help + man |
-bom, --break-at-old-method-breakpoints | By default, a method call arrow "->" is considered a candidate for a breakpoint, but method chains will fill to the line width before a break is considered. | help + man |
-bok, --break-at-old-keyword-breakpoints | By default, perltidy will retain a breakpoint before keywords which may return lists, such as "sort" and "map". | help + man |
-bot, --break-at-old-ternary-breakpoints | By default, if a conditional (ternary) operator is broken at a ":", then it will remain broken. | help + man |
-boa, --break-at-old-attribute-breakpoints | By default, if an attribute list is broken at a ":" in the source file, then it will remain broken. | help + man |
-cab, --comma-arrow-breakpoints n | break at commas after a comma-arrow (=>): n=0 break at all commas after => n=1 stable: break unless this breaks an existing one-line container n=2 break only if a one-line container cannot be formed… | help + man |
-ibc, --indent-block-comments | Block comments normally look best when they are indented to the same level as the code which follows them. | help + man |
-isbc, --indent-spaced-block-comments | If there is no leading space on the line, then the comment will not be indented, and otherwise it may be. | help + man |
-msc, --minimum-space-to-comment n | Side comments look best when lined up several spaces to the right of code. | help + man |
-csc, --closing-side-comments | The command -csc (or --closing-side-comments) adds or updates closing side comments. | help + man |
-dcsc, --delete-closing-side-comments | The command -dcsc (or --delete-closing-side-comments) removes these comments. | help + man |
-cscw, --closing-side-comment-warnings | This parameter is intended to help make the initial transition to the use of closing side comments. | help + man |
-sbc, --static-block-comments | When -sbc is used, a block comment with a special leading pattern, "##" by default, will be treated specially. | help + man |
-osbc, --outdent-static-block-comments | The command -osbc will cause static block comments to be outdented by the number of --continuation-spaces=n, if possible. | help + man |
-ssc, --static-side-comments | When -ssc is used, a side comment with a static leading pattern, which is "##" by default, will be spaced only a single space from previous character, and it will not be vertically aligned with other… | help + man |
-dac | delete all comments AND pod | help |
-dbc, --delete-block-comments | delete block comments | help + man |
-dsc, --delete-side-comments | delete side comments | help + man |
-dp | delete pod | help |
-tac | tee all comments AND pod | help |
-tbc | tee block comments | help |
-tsc | tee side comments | help |
-tp | tee pod | help |
-olq, --outdent-long-quotes | When -olq is set, lines which is a quoted string longer than the value maximum-line-length will have their indentation removed to make them more readable. | help + man |
-olc, --outdent-long-comments | When -olc is set, lines which are full-line (block) comments longer than the value maximum-line-length will have their indentation removed. | help + man |
-ola | outdent statement labels | help |
-okw, --outdent-keywords | The command -okw will cause certain leading control keywords to be outdented by the number of spaces defined by --continuation-indentation=nspaces, if possible. | help + man |
-mft, --maximum-fields-per-table n | Perltidy will use special formatting rules for lists are relatively small, irregular, or associated with certain keywords such as "sprintf". | help + man |
-x | do not format lines before hash-bang line (i.e., for VMS) | help |
-asc, --add-semicolons | Setting -asc allows perltidy to add any missing optional semicolon at the end of a line which is followed by a closing curly brace on the next line. | help + man |
-dsm, --delete-semicolons | Setting -dsm allows perltidy to delete extra semicolons which are simply empty statements. | help + man |
-gnu, --gnu-style | attempt to follow GNU Coding Standards as applied to perl | help + man |
-mangle | remove as many newlines as possible (but keep comments and pods) | help |
-extrude | insert as many newlines as possible | help |
-dop, --dump-options will | dump options used in this run to standard output and quit | help + man |
-ddf, --dump-defaults will | dump default options to standard output and quit | help + man |
-dsn, --dump-short-names will | dump all option short names to standard output and quit | help + man |
-dln, --dump-long-names will | dump option long names to standard output and quit | help + man |
-dpro, --dump-profile will | dump whatever configuration file is in effect to standard output | help + man |
-dtt, --dump-token-types will | dump all token types to standard output and quit | help + man |
-o, --outfile filename | Name of the output file (only if a single input file is being processed). (in the manual page but not in --help) | man |
-oext, --output-file-extension ext | Change the extension of the output file to be ext instead of the default tdy (or html in case the --html option is used). (in the manual page but not in --help) | man |
-bext, --backup-file-extension ext | This parameter serves two purposes: (1) to change the extension of the backup file to be something other than the default .bak, and (2) to indicate that no backup file should be saved. (in the manual page but not in --help) | man |
-bm, --backup-method s | This parameter should not normally be used but is available in the event that problems arise as a transition is made from an older implementation of the backup logic to a newer implementation. (in the manual page but not in --help) | man |
-ast, --assert-tidy | This flag asserts that the input and output code streams are identical, or in other words that the input code is already 'tidy' according to the formatting parameters. (in the manual page but not in --help) | man |
-asu, --assert-untidy | This flag asserts that the input and output code streams are different, or in other words that the input code is 'untidy' according to the formatting parameters. (in the manual page but not in --help) | man |
-tos, --timeout-in-seconds n | When the standard input supplies the input stream, and the input has not been received within n seconds, perltidy will end with a timeout message. (in the manual page but not in --help) | man |
-fmt, --format s | If --format=tidy (the default) then perltidy will reformat the input file, and if --format=html then perltidy will produce html output. (in the manual page but not in --help) | man |
--notidy | This flag disables all formatting and causes the input to be copied unchanged to the output except for possible changes in line ending characters and any pre- and post-filters. (in the manual page but not in --help) | man |
-vmll, --variable-maximum-line-length | A problem arises using a fixed maximum line length with very deeply nested code and data structures because eventually the amount of leading whitespace used for indicating indentation takes up most… (in the manual page but not in --help) | man |
-wc, --whitespace-cycle n | This flag also addresses problems with very deeply nested code and data structures. (in the manual page but not in --help) | man |
-dt, --default-tabsize n | If the first line of code passed to perltidy contains leading tabs but no tab scheme is specified for the output stream then perltidy must guess how many spaces correspond to each leading tab. (in the manual page but not in --help) | man |
-enc, --character-encoding s | This flag indicates if the input data stream uses a character encoding. (in the manual page but not in --help) | man |
-eos, --encode-output-strings s | This flag was added to resolve an issue involving the interface between Perl::Tidy and calling programs, and in particular Code::TidyAll (tidyall). (in the manual page but not in --help) | man |
-gcs, --use-unicode-gcstring | This flag controls whether or not perltidy may use module Unicode::GCString to obtain accurate display widths of wide characters. (in the manual page but not in --help) | man |
-atnl, --add-terminal-newline | This flag, which is enabled by default, allows perltidy to terminate the last line of the output stream with a newline character, regardless of whether or not the input stream was terminated with a… (in the manual page but not in --help) | man |
-it, --iterations n | This flag causes perltidy to do n complete iterations. (in the manual page but not in --help) | man |
-conv, --converge | This flag is equivalent to -it=4 and is included to simplify iteration control. (in the manual page but not in --help) | man |
-xci, --extended-continuation-indentation | This flag allows perltidy to use some improvements which have been made to its indentation model. (in the manual page but not in --help) | man |
-mci, --minimize-continuation-indentation | This flag allows perltidy to remove continuation indentation in some special cases where it is not really unnecessary. (in the manual page but not in --help) | man |
-lpil, --line-up-parentheses-inclusion-list, --line-up-parentheses-exclusion-list s | The following discussion is written for -lp but applies equally to the newer -xlp version. (in the manual page but not in --help) | man |
-ils, --indent-leading-semicolon | A line which begins with a leading semicolon will, by default, have the extra number of indentation spaces defined by --continuation-indentation=n. (in the manual page but not in --help) | man |
-nib, --non-indenting-braces | Normally, lines of code contained within a pair of block braces receive one additional level of indentation. (in the manual page but not in --help) | man |
-nibp, --non-indenting-brace-prefix s | The -nibp=string parameter may be used to change the marker for non-indenting braces. (in the manual page but not in --help) | man |
-oll, --outdent-long-lines | This command is equivalent to the combination --outdent-long-quotes and --outdent-long-comments, and it is included for compatibility with previous versions of perltidy. (in the manual page but not in --help) | man |
-mutt, --multiple-token-tightness s | To review, the tightness controls described in the previous section have three possible integer values: 0, 1, and 2, where n=0 always adds a space, and n=2 never adds a space. (in the manual page but not in --help) | man |
-xbt, --extended-block-tightness | There are two controls for spacing within curly braces, namely --block-brace-tightness=n for code block braces and --brace-tightness=n for all other braces. (in the manual page but not in --help) | man |
-xbtl, --extended-block-tightness-list s | The previous parameter --extended-block-tightness (-xbt) can be made to apply to curly braces preceded by any of the keywords (in the manual page but not in --help) | man |
-tso, --tight-secret-operators | The flag -tso causes certain perl token sequences (secret operators) which might be considered to be a single operator to be formatted "tightly" (without spaces). (in the manual page but not in --help) | man |
-nwls, --nowant-left-space s | (in the manual page but not in --help) | man |
-nwrs, --nowant-right-space s | These parameters are each followed by a quoted string, s, containing a list of token types. (in the manual page but not in --help) | man |
-nsak, --nospace-after-keyword s | where s is a list of keywords (in quotes if necessary). (in the manual page but not in --help) | man |
-skp, --space-keyword-paren | You may also want to use the flag -sfp (next item) too. (in the manual page but not in --help) | man |
-sfp, --space-function-paren | (in the manual page but not in --help) | man |
-fpva, --function-paren-vertical-alignment | A side-effect of using the -sfp flag is that the parens may become vertically aligned. (in the manual page but not in --help) | man |
-spp, --space-prototype-paren n | This flag can be used to control whether a function prototype is preceded by a space. (in the manual page but not in --help) | man |
-ssp, --space-signature-paren n | This flag is analogous to the previous except that it applies to the space before the opening paren of a sub signature rather than a sub prototype. (in the manual page but not in --help) | man |
-spit, --signature-paren-inner-tightness n | This flag is independent of the previous one: it controls the space inside a sub signature's parens, rather than the space before the opening paren. (in the manual page but not in --help) | man |
-kpit, --keyword-paren-inner-tightness n | The space inside of an opening paren, which itself follows a certain keyword, can be controlled by this parameter. (in the manual page but not in --help) | man |
-kpitl, --keyword-paren-inner-tightness-list string | This command can be used to change the keywords to which the previous parameter, -kpit=n, applies. (in the manual page but not in --help) | man |
-lop, --logical-padding | In the following example some extra space has been inserted on the second line between the two open parens. (in the manual page but not in --help) | man |
-tqw, --trim-qw provide | (in the manual page but not in --help) | man |
-sbq, --space-backslash-quote n | lines like (in the manual page but not in --help) | man |
-trp, --trim-pod will | ## Comment Controls (in the manual page but not in --help) | man |
-fpsc, --fixed-position-side-comment n | This parameter tells perltidy to line up side comments in column number n whenever possible. (in the manual page but not in --help) | man |
-iscl, --ignore-side-comment-lengths | This parameter causes perltidy to ignore the length of side comments when setting line breaks. (in the manual page but not in --help) | man |
-ipc, --ignore-perlcritic-comments | Perltidy, by default, will look for side comments beginning with ## no critic and ignore their lengths when making line break decisions, even if the user has not set -iscl. (in the manual page but not in --help) | man |
-hsc, --hanging-side-comments | By default, perltidy tries to identify and align "hanging side comments", which are something like this: (in the manual page but not in --help) | man |
-csci, --closing-side-comment-interval n | where "n" is the minimum number of lines that a block must have in order for a closing side comment to be added. (in the manual page but not in --help) | man |
-cscl, --closing-side-comment-list string | where "string" is a list of block types to be tagged with closing side comments. (in the manual page but not in --help) | man |
-cscxl, --closing-side-comment-exclusion-list string | where "string" is a list of block types which should NOT be tagged with closing side comments. (in the manual page but not in --help) | man |
-csct, --closing-side-comment-maximum-text n | The text appended to certain block types, such as an "if" block, is whatever lies between the keyword introducing the block, such as "if", and the opening brace. (in the manual page but not in --help) | man |
-cscb, --closing-side-comments-balanced | As discussed in the previous item, when the closing-side-comment-maximum-text limit is exceeded the comment text must be truncated. (in the manual page but not in --help) | man |
-csce, --closing-side-comment-else-flag n | The default, n=0, places the text of the opening "if" statement after any terminal "else". (in the manual page but not in --help) | man |
-cscp, --closing-side-comment-prefix string | This parameter changes the prefix which is used for closing side comments. (in the manual page but not in --help) | man |
-sbcp, --static-block-comment-prefix string | This parameter defines the prefix used to identify static block comments when the -sbc parameter is set. (in the manual page but not in --help) | man |
-sscp, --static-side-comment-prefix string | This parameter defines the prefix used to identify static side comments when the -ssc parameter is set. (in the manual page but not in --help) | man |
--code-skipping uses | (in the manual page but not in --help) | man |
-fs, --format-skipping | This is the master switch for format skipping. (in the manual page but not in --help) | man |
-fsb, --format-skipping-begin string | This and the next parameter allow the special beginning and ending comments to be changed. (in the manual page but not in --help) | man |
-fse, --format-skipping-end string | The -fse=string is the corresponding parameter used to change the ending marker for format skipping. (in the manual page but not in --help) | man |
-dfsfs, --detect-format-skipping-from-start | If perltidy encounters a format skipping end comment before any format skipping begin comment, then by default it will assume that format skipping begins with the first line of the file. (in the manual page but not in --help) | man |
-csb, --code-skipping-begin string | This may be used to change the beginning comment for a --code-skipping section, and its use is similar to the -fsb=string. (in the manual page but not in --help) | man |
-cse, --code-skipping-end string | This may be used to change the ending comment for a --code-skipping section, and its use is similar to the -fse=string. (in the manual page but not in --help) | man |
-csfs, --code-skipping-from-start | When this flag is set, and code skipping has not been disabled, code skipping begins from the start of a file even though there is no beginning code skipping comment. (in the manual page but not in --help) | man |
-lrt, --line-range-tidy n1:n2 | The range of lines is specified by integers n1 and n2, where n1 is the first line number to be formatted (start counting with 1) and n2 is the last line number to be formatted. (in the manual page but not in --help) | man |
-cblx, --cuddled-block-list-exclusive | When cuddled else formatting is selected with --cuddled-else, setting this flag causes perltidy to ignore its built-in defaults and rely exclusively on the block types specified on the… (in the manual page but not in --help) | man |
-cbo, --cuddled-break-option n | Cuddled formatting is only possible between a pair of code blocks if the closing brace of the first block starts a new line. (in the manual page but not in --help) | man |
-blpc, --blank-lines-prevent-cuddles | By default, cuddling operations occur even if a blank line separates a closing brace from the line to which it will be joined. (in the manual page but not in --help) | man |
-bll, --brace-left-list s | Use this parameter to change the types of block braces for which the -bl flag applies; (in the manual page but not in --help) | man |
-blxl, --brace-left-exclusion-list s | Use this parameter to exclude types of block braces for which the -bl flag applies; (in the manual page but not in --help) | man |
-asbl, --opening-anonymous-sub-brace-on-new-line | The flag -asbl is like the -sbl flag except that it applies to anonymous sub's instead of named subs. (in the manual page but not in --help) | man |
-blil, --brace-left-and-indent-list s | Use this parameter to change the types of block braces for which the -bli flag applies; (in the manual page but not in --help) | man |
-blixl, --brace-left-and-indent-exclusion-list s | Use this parameter to exclude types of block braces for which the -bli flag applies; (in the manual page but not in --help) | man |
-cpb, --cuddled-paren-brace | A related parameter, --cuddled-paren-brace, causes perltidy to join two lines which otherwise would be (in the manual page but not in --help) | man |
-cpbw, --cuddled-paren-brace-weld | This parameter modifies the -cuddled-paren-brace parameter of the previous to actively form these cuddled pairs whenever possible. (in the manual page but not in --help) | man |
-otr, --opening-token-right and | The -otr flag is a hint that perltidy should not place a break between a comma and an opening token. (in the manual page but not in --help) | man |
-bbhb, --break-before-hash-brace n | When a list of items spans multiple lines, the default formatting is to place the opening brace (or other container token) at the end of the starting line, like this: (in the manual page but not in --help) | man |
-bbhbi, --break-before-hash-brace-and-indent n | This flag is a companion to -bbhb=n for controlling the indentation of an opening hash brace which is placed on a new line by that parameter. (in the manual page but not in --help) | man |
-bbsb, --break-before-square-bracket n | This flag is similar to the flag described above, except it applies to lists contained within square brackets. (in the manual page but not in --help) | man |
-bbsbi, --break-before-square-bracket-and-indent n | This flag is a companion to -bbsb=n for controlling the indentation of an opening square bracket which is placed on a new line by that parameter. (in the manual page but not in --help) | man |
-bbp, --break-before-paren n | This flag is similar to -bbhb=n, described above, except it applies to lists contained within parens. (in the manual page but not in --help) | man |
-bbpi, --break-before-paren-and-indent n | This flag is a companion to -bbp=n for controlling the indentation of an opening paren which is placed on a new line by that parameter. (in the manual page but not in --help) | man |
-bfvt, --brace-follower-vertical-tightness n | Some types of closing block braces, such as eval, may be followed by additional code. (in the manual page but not in --help) | man |
-wfc, --weld-fat-comma | When the -wfc flag is set, along with -wn (--weld-nested-containers), perltidy is allowed to weld an opening paren to an inner opening container when they are separated by a hash key and fat comma… (in the manual page but not in --help) | man |
-wnxl, --weld-nested-exclusion-list s | The -wnxl=s flag provides some control over the types of containers which can be welded. (in the manual page but not in --help) | man |
--vertical-tightness n | (in the manual page but not in --help) | man |
-sot, --stack-opening-tokens and | The -sot flag tells perltidy to "stack" opening tokens when possible to avoid lines with isolated opening tokens. (in the manual page but not in --help) | man |
-sct, --stack-closing-tokens and | The -sct flag tells perltidy to "stack" closing tokens when possible to avoid lines with isolated closing tokens. (in the manual page but not in --help) | man |
-baao, --break-after-all-operators | (in the manual page but not in --help) | man |
-bbao, --break-before-all-operators | The -baao flag sets the default to be to break after all of the following operators: (in the manual page but not in --help) | man |
-bal, --break-after-labels n | This flag controls whether or not a line break occurs after a label. (in the manual page but not in --help) | man |
-boct, --break-at-old-comma-types s | This parameter can be used to make the -boc flag of the previous section apply only to commas in certain types of containers. (in the manual page but not in --help) | man |
-btct, --break-at-trailing-comma-types s | A trailing comma is an optional comma following the last item of a list. (in the manual page but not in --help) | man |
-bocp, --break-open-compact-parens s | When list contained in parentheses is too long to display on a single line, but short enough to display on two lines, then the default is to display it compactly on two lines. (in the manual page but not in --help) | man |
-qwaf, --qw-as-function | This option tells perltidy to format a qw list which is delimited with parentheses as if it were a function call whose call args are a list of quoted items. (in the manual page but not in --help) | man |
-drc, --delete-repeated-commas | This option causes repeated commas to be removed. (in the manual page but not in --help) | man |
-dwic, --delete-weld-interfering-commas | If the closing tokens of two nested containers are separated by a comma, then welding requested with --weld-nested-containers cannot occur. (in the manual page but not in --help) | man |
-dia, --delete-interbracket-arrows | This parameter deletes interbracket arrows. (in the manual page but not in --help) | man |
-aia, --add-interbracket-arrows | This parameter adds interbracket arrows. (in the manual page but not in --help) | man |
-ias, --interbracket-arrow-style s | By default the -add- and -delete- parameters apply to all interbracket arrows. (in the manual page but not in --help) | man |
-wia, --warn-interbracket-arrows | If this parameter is set, then a message is written to the error file in the following cases: (in the manual page but not in --help) | man |
-iac, --interbracket-arrow-complexity n | This parameter makes it possible to skip adding or deleting arrows following a container which is complex in some sense. (in the manual page but not in --help) | man |
--heredoc-indentation-update, -hiu | This parameter setting causes the leading whitespace of indented here-documents to be updated to agree with the indentation of the line of code on which they are introduced. (in the manual page but not in --help) | man |
--heredoc-extra-spaces, -hxs s | This parameter allows extra spaces to be added to the leading whitespace, thus indenting the heredoc text. (in the manual page but not in --help) | man |
--heredoc-tag-exclusion-pattern, -htxp s | This option prevents any of the --heredoc- parameters from operating on heredocs whose tags match the regex pattern string s. (in the manual page but not in --help) | man |
--heredoc-excess-length-option, -hxlo n | The value n of this option is an integer which determines what happens if an indented heredoc would exceed the maximum line length, as follows: (in the manual page but not in --help) | man |
--heredoc-convert-to, -hct s | This option converts between standard and indented heredocs. (in the manual page but not in --help) | man |
-wme, --warn-missing-else | This flag tells perltidy to issue a warning if a program is missing a terminal else block. (in the manual page but not in --help) | man |
-ame, --add-missing-else | This flag tells perltidy to output an empty else block wherever a program is missing a terminal else block. (in the manual page but not in --help) | man |
-amec, --add-missing-else-comment s | This string is a side comment which will be written to highlight a new empty else block. (in the manual page but not in --help) | man |
-iob, --ignore-old-breakpoints | This flag is a master switch which tells perltidy to ignore all line breakpoints in the input script to the maximum extend possible. (in the manual page but not in --help) | man |
-botc, --break-at-old-trailing-conditionals | A statement which is broken at one of the trailing conditional modifiers (in the manual page but not in --help) | man |
-botl, --break-at-old-trailing-loops | Likewise, a statement which is broken at one of the trailing loop modifiers (in the manual page but not in --help) | man |
-bos, --break-at-old-semicolon-breakpoints | Semicolons are normally placed at the end of a statement. (in the manual page but not in --help) | man |
-kbb, --keep-old-breakpoints-before s | (in the manual page but not in --help) | man |
-kba, --keep-old-breakpoints-after s | These parameters are each followed by a quoted string, s, containing a list of token types (separated only by spaces). (in the manual page but not in --help) | man |
-fbl, --freeze-blank-lines | Set -fbl if you want to the blank lines in your script to remain exactly as they are. (in the manual page but not in --help) | man |
-bboc, --blanks-before-opening-comments | This parameter adjusts the behavior of the previous parameter, -bbc, at an opening comment. (in the manual page but not in --help) | man |
-blbs, --blank-lines-before-subs n | The parameter -blbs=n requests that least n blank lines precede a sub definition which does not follow a comment and which is more than one-line long. (in the manual page but not in --help) | man |
-blbp, --blank-lines-before-packages n | The parameter -blbp=n requests that least n blank lines precede a package which does not follow a comment. (in the manual page but not in --help) | man |
-lbl n | This controls how often perltidy is allowed to add blank lines before certain block types (see previous section). (in the manual page but not in --help) | man |
-blao, --blank-lines-after-opening-block i | This control places a minimum of i blank lines after a line which ends with an opening block brace of a specified type. (in the manual page but not in --help) | man |
-blbc, --blank-lines-before-closing-block i | This control places a minimum of i blank lines before a line which begins with a closing block brace of a specified type. (in the manual page but not in --help) | man |
-blaol, --blank-lines-after-opening-block-list s | The parameter s is a list of block type keywords to which the flag -blao should apply. (in the manual page but not in --help) | man |
-blbcl, --blank-lines-before-closing-block-list s | This parameter is a list of block type keywords to which the flag -blbc should apply. (in the manual page but not in --help) | man |
-kblx, --keep-old-blank-lines-exceptions s | Most of the blank line controls described above specify a minimum number of blank lines, rather than a maximum, so they cannot be used remove lines. (in the manual page but not in --help) | man |
-sob, --swallow-optional-blank-lines | This is equivalent to --keep-old-blank-lines=0 and is included for compatibility with previous versions. (in the manual page but not in --help) | man |
-nsob, --noswallow-optional-blank-lines | This is equivalent to --keep-old-blank-lines=1 and is included for compatibility with previous versions. (in the manual page but not in --help) | man |
-kgbl, --keyword-group-blanks-list s | (in the manual page but not in --help) | man |
-kgbs, --keyword-group-blanks-size s | (in the manual page but not in --help) | man |
-kgbb, --keyword-group-blanks-before n | (in the manual page but not in --help) | man |
-kgba, --keyword-group-blanks-after n | (in the manual page but not in --help) | man |
-kgbi, --keyword-group-blanks-inside is | (in the manual page but not in --help) | man |
-kgbd, --keyword-group-blanks-delete is | (in the manual page but not in --help) | man |
-kgbr, --keyword-group-blanks-repeat-count n | In addition, the following abbreviations are available to for simplified usage: (in the manual page but not in --help) | man |
-kgb, --keyword-group-blanks is | (in the manual page but not in --help) | man |
-nkgb, --nokeyword-group-blanks | Before describing the meaning of the parameters in detail let us look at an example which is formatted with default parameter settings. (in the manual page but not in --help) | man |
-pbp, --perl-best-practices | (in the manual page but not in --help) | man |
-olbxl, --one-line-block-exclusion-list s | As noted above, perltidy will, by default, attempt to create new one-line blocks for certain block types. (in the manual page but not in --help) | man |
-olbn, --one-line-block-nesting n | Nested one-line blocks are lines with code blocks which themselves contain code blocks. (in the manual page but not in --help) | man |
-olbs, --one-line-block-semicolons n | This flag controls the placement of semicolons at the end of one-line blocks. (in the manual page but not in --help) | man |
-xs, --extended-syntax | This flag allows perltidy to handle certain common extensions to the standard syntax without complaint. (in the manual page but not in --help) | man |
-sal, --sub-alias-list s | This flag causes one or more words to be treated the same as if they were the keyword sub. (in the manual page but not in --help) | man |
-gal, --grep-alias-list s | This flag allows a code block following an external 'list operator' function to be formatted as if it followed one of the built-in keywords grep, map or sort. (in the manual page but not in --help) | man |
-gaxl, --grep-alias-exclusion-list s | The -gaxl=s flag provides a method for removing any of the default list operators given above by listing them in the string s. (in the manual page but not in --help) | man |
-uf, --use-feature s | This flag tells perltidy to allow or disallow the syntax associated a pragma in string s. (in the manual page but not in --help) | man |
--similar-keys-maximum-difference, -skmd n | The integer n gives the maximum number of differences to use when checking for hash key similarity. (in the manual page but not in --help) | man |
--similar-keys-minimum-length, -skml n | Hash keys with fewer than n characters will be ignored when checking for similar keys. (in the manual page but not in --help) | man |
--similar-keys-maximum-pairs, -skmp n | Each similar pair found is displayed on one line of output, so this is equivalent to the maximum number of output lines. (in the manual page but not in --help) | man |
-wmrt string | To restrict the checking, set the string equal to the letter(s) of that warning, any x, y, o, u, or s. (in the manual page but not in --help) | man |