You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/05/04 10:41:24 UTC

[24/50] [abbrv] incubator-tinkerpop git commit: Allow override of verbosity to quiet when using -e.

Allow override of verbosity to quiet when using -e.

Only override if the verbosity is not explicitly set.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/05be605c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/05be605c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/05be605c

Branch: refs/heads/TINKERPOP-946
Commit: 05be605cd3df603772b15aad751310ea2d4b4b89
Parents: 3ce732a
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Apr 28 14:39:21 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Apr 28 14:39:21 2016 -0400

----------------------------------------------------------------------
 .../groovy/org/apache/tinkerpop/gremlin/console/Console.groovy   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/05be605c/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
----------------------------------------------------------------------
diff --git a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
index 6e68d05..7ab8b57 100644
--- a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
+++ b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
@@ -395,6 +395,10 @@ class Console {
         if (options.D) io.verbosity = IO.Verbosity.DEBUG
         if (options.Q) io.verbosity = IO.Verbosity.QUIET
 
+        // override verbosity if not explicitly set and -e is used
+        if (options.e && (!options.V && !options.D && !options.Q))
+            io.verbosity = IO.Verbosity.QUIET
+
         if (options.i && options.e) {
             println("-i and -e options are mutually exclusive - provide one or the other")
             System.exit(0)