提交 8e4e03eb 编写于 作者: M Marbin Tan 提交者: Marbin Tan

gpconfig: fix unable to run ./gpconfig --help with source code

When running gpconfig within the source code, you'll get the following:
$ ./gpMgmt/bin/gpconfig --help
  OptParser instance has no attribute 'helpStr'

fix this by initializing the help string list
上级 5a4a74c2
......@@ -53,6 +53,7 @@ def parseargs():
parser.add_option('-M', '--mirrorvalue', type='string')
parser.add_option('-f', '--file', action='store_true')
parser.add_option('--file-compare', dest='file_compare', action='store_true')
parser.setHelp([])
(options, _) = parser.parse_args()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册