ClickHouse/src/Common/TerminalSize.h

17 lines
396 B
C++
Raw Normal View History

2019-08-23 13:19:12 +00:00
#pragma once
#include <string>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
2019-08-26 12:47:19 +00:00
uint16_t getTerminalWidth();
2019-08-23 13:19:12 +00:00
2019-08-23 15:47:27 +00:00
/** Creates po::options_description with name and an appropriate size for option displaying
2019-08-23 13:19:12 +00:00
* when program is called with option --help
* */
2019-08-23 15:47:27 +00:00
po::options_description createOptionsDescription(const std::string &caption, unsigned short terminal_width);
2019-08-23 13:19:12 +00:00