| 271 | } |
| 272 | |
| 273 | MetadataResult SetMaxRows(ShellState &state, const vector<string> &args) { |
| 274 | if (args.size() > 3) { |
| 275 | return MetadataResult::PRINT_USAGE; |
| 276 | } |
| 277 | if (args.size() == 1) { |
| 278 | state.PrintF("current max rows: %zu\n", state.max_rows); |
| 279 | return MetadataResult::SUCCESS; |
| 280 | } |
| 281 | state.max_rows = (size_t)ShellState::StringToInt(args[1]); |
| 282 | if (args.size() > 2) { |
| 283 | state.max_analyze_rows = (size_t)ShellState::StringToInt(args[2]); |
| 284 | } |
| 285 | return MetadataResult::SUCCESS; |
| 286 | } |
| 287 | |
| 288 | MetadataResult SetMaxWidth(ShellState &state, const vector<string> &args) { |
| 289 | if (args.size() > 2) { |