The command line for applying Pretty Print is:
ReEldor –PrettyPrint(PP) [-SQLServer(SS) <SQLServer Instance name>] -Model(M) <model name> [-Segment(S) <segment name>] [-Element(E) <element name>] [-NoUpdates] [-NoValidate] [-LogFile(L) <file name>] [-EndOfLineCommentColumn(EOLCC) <int>] [-CommandAbbreviated(CA) | -CommandMixedCase(CMC) | -CommandUpperCase(CUC)] [-DoWhen(DW) | -If] [-Operand1Col(O1C) <int>] [-Operand2Col(O2C) <int>] [-OperandColumnAbsolute(OCA)]) [-TabSize(TS) <int>] [-IndentCase(IC)]ReplaceTabsWithSpaces(RTWS)] [-MaximumLineLength(ML) <int> [-ContinuationIndentCount(CI) <int>]]
Where:
Syntax |
Description |
---|---|
Model (M) | Name of AB Suite Model to refactor. This is a necessary parameter and can be used as a short form of –M instead of –Model. |
SQL Server (SS) | Specifies the name of the SQLServer instance that contains the AB Suite model to refactor. This parameter is optional. |
Segment (S) | Name of Segment to refactor. This is optional parameter and defaults to the Model name, if not specified. |
Element (E) | Name of Element/Folder to refactor. This is optional and defaults to ALL elements in the Segment. |
NoUpdates | Only shows all the changes that could have been made. This does not update the Model. By default, the behavior is to update the model. |
NoValidate | Does not validate any logic after the changes have been applied. By default, the behavior is to validate. |
LogFile (L) | Name of the log file. By default, it is ReEldor.log. |
EndOfLineCommentColumn (EOLCC) | The start column for end of line comments |
CommandAbbreviated (CA) | Displays commands in abbreviated form. |
CommandMixedCase (CMC) | Displays commands in mixed case. It is the default format. |
CommandUpperCase (CUC) | Displays commands in upper case. |
DoWhen (DW) | Uses DoWhen when DoWhen/If command is present in the logic. It is the default value. |
If | Uses If when DoWhen/If is present in the logic. |
Operand1Col (O1C) | Starts the Operand one of commands in this column. |
Operand2Col (O2C) | Starts the Operand two of commands in this column. |
OperandColumnAbsolute (OCA) | When specified with Operand1Col and Operand2Col the column positions are absolute (refer to example 2 of applying Pretty Print for details) |
TabSize (TS) | The number of spaces for each tab. By default, the value is 4. |
IndentCase (IC) | Indents case from the BeginCase. By default, the value is false. |
ReplaceTabsWithSpaces (RTWS) | Expands tabs with spaces. By default, the value is false. |
MaximumLineLength (ML) | Used to specify the maximum length of lines. By default, the value is 80. |