This is an automated email from the ASF dual-hosted git repository.

nwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git


The following commit(s) were added to refs/heads/master by this push:
     new 0876b56  Make unknown arguments a warning instead of an error in heron 
executor (#3353)
0876b56 is described below

commit 0876b56d49f06e587bd14e41c54ef730b35221eb
Author: Ning Wang <[email protected]>
AuthorDate: Wed Oct 2 16:55:27 2019 -0700

    Make unknown arguments a warning instead of an error in heron executor 
(#3353)
---
 heron/executor/src/python/heron_executor.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/heron/executor/src/python/heron_executor.py 
b/heron/executor/src/python/heron_executor.py
index 9380ef5..25bec6f 100755
--- a/heron/executor/src/python/heron_executor.py
+++ b/heron/executor/src/python/heron_executor.py
@@ -376,9 +376,8 @@ class HeronExecutor(object):
     parsed_args, unknown_args = parser.parse_known_args(args[1:])
 
     if unknown_args:
-      Log.error('Unknown argument: %s' % unknown_args[0])
-      parser.print_help()
-      sys.exit(1)
+      Log.warn('Unknown arguments found!!! They are: %s' % unknown_args)
+      Log.warn(parser.format_help())
 
     return parsed_args
 

Reply via email to