@@ -243,7 +243,6 @@ def __init__(
243243 * args ,
244244 env_prefix : Union [bool , str ] = True ,
245245 formatter_class : type [argparse .HelpFormatter ] = DefaultHelpFormatter ,
246- exit_on_error : bool = True ,
247246 logger : Union [logging .Logger , bool , str , dict ] = False ,
248247 version : Optional [str ] = None ,
249248 print_config : Optional [str ] = "--print_config" ,
@@ -274,7 +273,6 @@ def __init__(
274273 self ._group_class = get_argument_group_class (self )
275274 if self .groups is None :
276275 self .groups = {}
277- self .exit_on_error = exit_on_error
278276 self ._extra_required_keys : set [str ] = set ()
279277 self .save_path_content : set [str ] = set ()
280278 self .default_config_files = default_config_files
@@ -431,7 +429,7 @@ def parse_args( # type: ignore[override]
431429 A config object with all parsed values.
432430
433431 Raises:
434- ArgumentError: If the parsing fails and ``exit_on_error=True ``.
432+ ArgumentError: If the parsing fails and ``exit_on_error=False ``.
435433 """
436434 skip_validation , namespace_as_config = get_private_kwargs (
437435 kwargs , _skip_validation = False , _namespace_as_config = False
@@ -498,7 +496,7 @@ def parse_object(
498496 A config object with all parsed values.
499497
500498 Raises:
501- ArgumentError: If the parsing fails and ``exit_on_error=True ``.
499+ ArgumentError: If the parsing fails and ``exit_on_error=False ``.
502500 """
503501 skip_validation , skip_required = get_private_kwargs (kwargs , _skip_validation = False , _skip_required = False )
504502
@@ -581,7 +579,7 @@ def parse_env(
581579 A config object with all parsed values.
582580
583581 Raises:
584- ArgumentError: If the parsing fails and ``exit_on_error=True ``.
582+ ArgumentError: If the parsing fails and ``exit_on_error=False ``.
585583 """
586584 skip_validation , skip_subcommands = get_private_kwargs (kwargs , _skip_validation = False , _skip_subcommands = False )
587585
@@ -625,7 +623,7 @@ def parse_path(
625623 A config object with all parsed values.
626624
627625 Raises:
628- ArgumentError: If the parsing fails and ``exit_on_error=True ``.
626+ ArgumentError: If the parsing fails and ``exit_on_error=False ``.
629627 """
630628 fpath = Path (cfg_path , mode = _get_config_read_mode ())
631629 with change_to_path_dir (fpath ):
@@ -664,7 +662,7 @@ def parse_string(
664662 A config object with all parsed values.
665663
666664 Raises:
667- ArgumentError: If the parsing fails and ``exit_on_error=True ``.
665+ ArgumentError: If the parsing fails and ``exit_on_error=False ``.
668666 """
669667 skip_validation , fail_no_subcommand = get_private_kwargs (
670668 kwargs , _skip_validation = False , _fail_no_subcommand = True
0 commit comments