From 27a52afdefee36ecf619f00624e3282d9952aa2a Mon Sep 17 00:00:00 2001 From: klshuster Date: Mon, 27 Jul 2020 17:38:37 -0400 Subject: [PATCH] set defaults appropriately --- parlai/core/script.py | 1 + 1 file changed, 1 insertion(+) diff --git a/parlai/core/script.py b/parlai/core/script.py index b3ad904229a..b0bfe837cc2 100644 --- a/parlai/core/script.py +++ b/parlai/core/script.py @@ -244,6 +244,7 @@ def superscript_main(args=None): formatter_class=CustomHelpFormatter, ) subparser.set_defaults(super_command=script_name) + subparser.set_defaults(**script_parser._defaults) for action in script_parser._actions: subparser._add_action(action) for action_group in script_parser._action_groups: