ClickHouse/src/Common/TerminalSize.h
2020-04-03 18:14:31 +03:00

17 lines
396 B
C++

#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);