lebrice / SimpleParsing

Simple, Elegant, Typed Argument Parsing with argparse
MIT License
386 stars 47 forks source link

Interop with HuggingFace: Use `help` entry from field metadata dict #169

Closed lebrice closed 1 year ago

lebrice commented 1 year ago

The dataclasses used by the HfArgumentParser have a metatada={"help": "help string"}, for example, here:

https://github.com/huggingface/transformers/blob/main/examples/pytorch/text-classification/run_glue.py#L80-L83

It would be good to support this, so that one could use parser.add_arguments(TrainingArguments, "trainer") in SimpleParsing directly!