aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/TerminalSize.h
blob: b5fc6de7921ff565895e6959aac8193b1dd74e0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <string>
#include <boost/program_options.hpp>


namespace po = boost::program_options;


uint16_t getTerminalWidth();

/** Creates po::options_description with name and an appropriate size for option displaying
 *  when program is called with option --help
 * */
po::options_description createOptionsDescription(const std::string &caption, unsigned short terminal_width); /// NOLINT