Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
859d97e8
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
859d97e8
编写于
8月 23, 2019
作者:
D
dimarub2000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Renaming
上级
6e098eb9
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
19 addition
and
19 deletion
+19
-19
dbms/programs/benchmark/Benchmark.cpp
dbms/programs/benchmark/Benchmark.cpp
+2
-2
dbms/programs/client/Client.cpp
dbms/programs/client/Client.cpp
+3
-3
dbms/programs/compressor/Compressor.cpp
dbms/programs/compressor/Compressor.cpp
+2
-2
dbms/programs/format/Format.cpp
dbms/programs/format/Format.cpp
+2
-2
dbms/programs/local/LocalServer.cpp
dbms/programs/local/LocalServer.cpp
+2
-2
dbms/programs/obfuscator/Obfuscator.cpp
dbms/programs/obfuscator/Obfuscator.cpp
+2
-2
dbms/programs/performance-test/PerformanceTestSuite.cpp
dbms/programs/performance-test/PerformanceTestSuite.cpp
+2
-2
dbms/src/Common/TerminalSize.cpp
dbms/src/Common/TerminalSize.cpp
+2
-2
dbms/src/Common/TerminalSize.h
dbms/src/Common/TerminalSize.h
+2
-2
未找到文件。
dbms/programs/benchmark/Benchmark.cpp
浏览文件 @
859d97e8
...
...
@@ -32,7 +32,7 @@
#include <Client/Connection.h>
#include <Common/InterruptListener.h>
#include <Common/Config/configReadClient.h>
#include <Common/Terminal
Displaying
.h>
#include <Common/Terminal
Size
.h>
/** A tool for evaluating ClickHouse performance.
...
...
@@ -440,7 +440,7 @@ int mainEntryClickHouseBenchmark(int argc, char ** argv)
{
using
boost
::
program_options
::
value
;
boost
::
program_options
::
options_description
desc
=
set
OptionsDescription
(
"Allowed options"
,
getTerminalWidth
());
boost
::
program_options
::
options_description
desc
=
create
OptionsDescription
(
"Allowed options"
,
getTerminalWidth
());
desc
.
add_options
()
(
"help"
,
"produce help message"
)
(
"concurrency,c"
,
value
<
unsigned
>
()
->
default_value
(
1
),
"number of parallel queries"
)
...
...
dbms/programs/client/Client.cpp
浏览文件 @
859d97e8
...
...
@@ -67,7 +67,7 @@
#include <Common/Config/configReadClient.h>
#include <Storages/ColumnsDescription.h>
#include <common/argsToConfig.h>
#include <Common/Terminal
Displaying
.h>
#include <Common/Terminal
Size
.h>
#if USE_READLINE
#include "Suggest.h"
...
...
@@ -1649,7 +1649,7 @@ public:
namespace
po
=
boost
::
program_options
;
/// Main commandline options related to client functionality and all parameters from Settings.
po
::
options_description
main_description
=
set
OptionsDescription
(
"Main options"
,
terminal_width
);
po
::
options_description
main_description
=
create
OptionsDescription
(
"Main options"
,
terminal_width
);
main_description
.
add_options
()
(
"help"
,
"produce help message"
)
(
"config-file,C"
,
po
::
value
<
std
::
string
>
(),
"config-file path"
)
...
...
@@ -1695,7 +1695,7 @@ public:
context
.
getSettingsRef
().
addProgramOptions
(
main_description
);
/// Commandline options related to external tables.
po
::
options_description
external_description
=
set
OptionsDescription
(
"External tables options"
,
terminal_width
);
po
::
options_description
external_description
=
create
OptionsDescription
(
"External tables options"
,
terminal_width
);
external_description
.
add_options
()
(
"file"
,
po
::
value
<
std
::
string
>
(),
"data file or - for stdin"
)
(
"name"
,
po
::
value
<
std
::
string
>
()
->
default_value
(
"_data"
),
"name of the table"
)
...
...
dbms/programs/compressor/Compressor.cpp
浏览文件 @
859d97e8
...
...
@@ -13,7 +13,7 @@
#include <Parsers/parseQuery.h>
#include <Parsers/ExpressionElementParsers.h>
#include <Compression/CompressionFactory.h>
#include <Common/Terminal
Displaying
.h>
#include <Common/Terminal
Size
.h>
namespace
DB
...
...
@@ -60,7 +60,7 @@ void checkAndWriteHeader(DB::ReadBuffer & in, DB::WriteBuffer & out)
int
mainEntryClickHouseCompressor
(
int
argc
,
char
**
argv
)
{
boost
::
program_options
::
options_description
desc
=
set
OptionsDescription
(
"Allowed options"
,
getTerminalWidth
());
boost
::
program_options
::
options_description
desc
=
create
OptionsDescription
(
"Allowed options"
,
getTerminalWidth
());
desc
.
add_options
()
(
"help,h"
,
"produce help message"
)
(
"decompress,d"
,
"decompress"
)
...
...
dbms/programs/format/Format.cpp
浏览文件 @
859d97e8
...
...
@@ -6,13 +6,13 @@
#include <Parsers/ParserQuery.h>
#include <Parsers/parseQuery.h>
#include <Parsers/formatAST.h>
#include <Common/Terminal
Displaying
.h>
#include <Common/Terminal
Size
.h>
int
mainEntryClickHouseFormat
(
int
argc
,
char
**
argv
)
{
using
namespace
DB
;
boost
::
program_options
::
options_description
desc
=
set
OptionsDescription
(
"Allowed options"
,
getTerminalWidth
());
boost
::
program_options
::
options_description
desc
=
create
OptionsDescription
(
"Allowed options"
,
getTerminalWidth
());
desc
.
add_options
()
(
"help,h"
,
"produce help message"
)
(
"hilite"
,
"add syntax highlight with ANSI terminal escape sequences"
)
...
...
dbms/programs/local/LocalServer.cpp
浏览文件 @
859d97e8
...
...
@@ -35,7 +35,7 @@
#include <boost/program_options/options_description.hpp>
#include <boost/program_options.hpp>
#include <common/argsToConfig.h>
#include <Common/Terminal
Displaying
.h>
#include <Common/Terminal
Size
.h>
namespace
DB
...
...
@@ -410,7 +410,7 @@ void LocalServer::init(int argc, char ** argv)
/// Don't parse options with Poco library, we prefer neat boost::program_options
stopOptionsProcessing
();
po
::
options_description
description
=
set
OptionsDescription
(
"Main options"
,
getTerminalWidth
());
po
::
options_description
description
=
create
OptionsDescription
(
"Main options"
,
getTerminalWidth
());
description
.
add_options
()
(
"help"
,
"produce help message"
)
(
"config-file,c"
,
po
::
value
<
std
::
string
>
(),
"config-file path"
)
...
...
dbms/programs/obfuscator/Obfuscator.cpp
浏览文件 @
859d97e8
...
...
@@ -36,7 +36,7 @@
#include <boost/program_options.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/container/flat_map.hpp>
#include <Common/Terminal
Displaying
.h>
#include <Common/Terminal
Size
.h>
static
const
char
*
documantation
=
R"(
...
...
@@ -949,7 +949,7 @@ try
using
namespace
DB
;
namespace
po
=
boost
::
program_options
;
po
::
options_description
description
=
set
OptionsDescription
(
"Options"
,
getTerminalWidth
());
po
::
options_description
description
=
create
OptionsDescription
(
"Options"
,
getTerminalWidth
());
description
.
add_options
()
(
"help"
,
"produce help message"
)
(
"structure,S"
,
po
::
value
<
std
::
string
>
(),
"structure of the initial table (list of column and type names)"
)
...
...
dbms/programs/performance-test/PerformanceTestSuite.cpp
浏览文件 @
859d97e8
...
...
@@ -28,7 +28,7 @@
#include <Core/Settings.h>
#include <Common/Exception.h>
#include <Common/InterruptListener.h>
#include <Common/Terminal
Displaying
.h>
#include <Common/Terminal
Size
.h>
#include "TestStopConditions.h"
#include "TestStats.h"
...
...
@@ -325,7 +325,7 @@ try
using
po
::
value
;
using
Strings
=
DB
::
Strings
;
po
::
options_description
desc
=
set
OptionsDescription
(
"Allowed options"
,
getTerminalWidth
());
po
::
options_description
desc
=
create
OptionsDescription
(
"Allowed options"
,
getTerminalWidth
());
desc
.
add_options
()
(
"help"
,
"produce help message"
)
(
"lite"
,
"use lite version of output"
)
...
...
dbms/src/Common/Terminal
Displaying
.cpp
→
dbms/src/Common/Terminal
Size
.cpp
浏览文件 @
859d97e8
#include <unistd.h>
#include <sys/ioctl.h>
#include <Common/Exception.h>
#include <Common/Terminal
Displaying
.h>
#include <Common/Terminal
Size
.h>
namespace
po
=
boost
::
program_options
;
...
...
@@ -25,7 +25,7 @@ unsigned short int getTerminalWidth()
return
0
;
}
po
::
options_description
setOptionsDescription
(
const
std
::
string
&
caption
,
unsigned
short
terminal_width
)
po
::
options_description
createOptionsDescription
(
const
std
::
string
&
caption
,
unsigned
short
terminal_width
)
{
unsigned
line_length
=
po
::
options_description
::
m_default_line_length
;
unsigned
min_description_length
=
line_length
/
2
;
...
...
dbms/src/Common/Terminal
Displaying
.h
→
dbms/src/Common/Terminal
Size
.h
浏览文件 @
859d97e8
...
...
@@ -10,8 +10,8 @@ namespace po = boost::program_options;
unsigned
short
int
getTerminalWidth
();
/**
Sets a
name and an appropriate size for option displaying
/**
Creates po::options_description with
name and an appropriate size for option displaying
* when program is called with option --help
* */
po
::
options_description
setOptionsDescription
(
const
std
::
string
&
caption
,
unsigned
short
terminal_width
);
po
::
options_description
createOptionsDescription
(
const
std
::
string
&
caption
,
unsigned
short
terminal_width
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录