Skip to content

Commit

Permalink
Merge pull request #78 from SciCatProject/fix-argparser
Browse files Browse the repository at this point in the history
Suppress argparser default value setter.
  • Loading branch information
nitrosx authored Oct 2, 2024
2 parents 84ea462 + b12a287 commit b941d83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scicat_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def _parse_nested_input_args(input_args: argparse.Namespace) -> dict:
nested_args = {}
for key, value in vars(input_args).items():
_insert_item(nested_args, key, value)

return nested_args


Expand Down Expand Up @@ -69,7 +68,7 @@ def build_arg_parser(
**Note**: It can't parse the annotations from parent class.
"""
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(argument_default=argparse.SUPPRESS)

def _add_arguments(dataclass_tp: type, prefixes: tuple[str, ...] = ()) -> None:
# Add argument group if prefixes are provided
Expand Down

0 comments on commit b941d83

Please sign in to comment.