IMPALA-5506: Add stdin description to help information of query_file option
Help information of query_file option in impala-shell misses stdin description. I fix this issue by adding stdin description to help information of query_file option. Change-Id: I0264174fd062497c72891b31cf9ac1ba6c00f716 Reviewed-on: http://gerrit.cloudera.org:8080/7178 Reviewed-by: Henry Robinson <[email protected]> Tested-by: Impala Public Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/e2532a96 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/e2532a96 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/e2532a96 Branch: refs/heads/master Commit: e2532a96c81ecfa2dc763306e96eb340fb49afe3 Parents: 9ef5ad4 Author: davidxdh <[email protected]> Authored: Wed Jun 14 13:53:54 2017 +0800 Committer: Impala Public Jenkins <[email protected]> Committed: Wed Jun 14 20:51:18 2017 +0000 ---------------------------------------------------------------------- shell/option_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/e2532a96/shell/option_parser.py ---------------------------------------------------------------------- diff --git a/shell/option_parser.py b/shell/option_parser.py index 0a30ed4..6092439 100755 --- a/shell/option_parser.py +++ b/shell/option_parser.py @@ -84,7 +84,8 @@ def get_option_parser(defaults): parser.add_option("-q", "--query", dest="query", help="Execute a query without the shell") parser.add_option("-f", "--query_file", dest="query_file", - help="Execute the queries in the query file, delimited by ;") + help="Execute the queries in the query file, delimited by ;." + " Queries may be read from stdin if the argument to -f is -.") parser.add_option("-k", "--kerberos", dest="use_kerberos", action="store_true", help="Connect to a kerberized impalad") parser.add_option("-o", "--output_file", dest="output_file",
