Skip to content

Commit

Permalink
Fix #247
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaps0dy authored and lebrice committed Apr 19, 2023
1 parent f4dee55 commit 0cb4e58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion simple_parsing/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,13 @@ def parse_known_args(
self.set_defaults(config_file)

if self.add_config_path_arg:
temp_parser = ArgumentParser(add_config_path_arg=False, add_help=False)
temp_parser = ArgumentParser(
add_config_path_arg=False,
add_help=False,
add_option_string_dash_variants=FieldWrapper.add_dash_variants,
argument_generation_mode=FieldWrapper.argument_generation_mode,
nested_mode=FieldWrapper.nested_mode,
)
temp_parser.add_argument(
"--config_path",
type=Path,
Expand Down

0 comments on commit 0cb4e58

Please sign in to comment.