| 254 | } |
| 255 | |
| 256 | bool InitRangeFormat(CommandLine &cmd, FormatContext &formatContext) { |
| 257 | InitFormat(cmd, formatContext); |
| 258 | |
| 259 | if (cmd.HasOption("range-line")) { |
| 260 | formatContext.SetFormatRange(true, cmd.Get<std::string>("range-line")); |
| 261 | } else if (cmd.HasOption("range-offset")) { |
| 262 | formatContext.SetFormatRange(false, cmd.Get<std::string>("range-offset")); |
| 263 | } |
| 264 | |
| 265 | if (cmd.HasOption("complete-output")) { |
| 266 | formatContext.EnableCompleteOutputRangeSupport(); |
| 267 | } |
| 268 | |
| 269 | return true; |
| 270 | } |
no test coverage detected