Make unknown arguments a warning instead of an error in heron executor (#3353)
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 @@
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