Fabrice Normandin

Results 132 comments of Fabrice Normandin

What if the field is of type `Optional[str]` and has a default value? How would you then specify that the value should actually be `None`, from the command-line?

Thanks for laying all this out @pvandyken. I think I agree with you (might have to re-read it again more carefully). I don't see an answer to my original question...

> Hey @lebrice, is there a status update on this change? It would be nice for me to be able to use the official release of `simple_parsing` again instead of...

Oh! Also, I probably should have mentioned this at the start, but you can overwrite the auto-generated argparse arguments by passing them to the `simple_parsing.field` function. For instance, you can...

> No problem. It certainly is not urgent. I just want to make sure that it will eventually get in. I can help separate out parts related to this feature...

Hi @anivegesana , sorry I'm currently at NeurIPS. I'll try to work on this as soon as I can. Thanks for the reminder and sorry for the delay!

E.g.: ```python import argparse parser = argparse.ArgumentParser(prog="test") group = parser.add_argument_group("global flags", description="bobobobo") group.add_argument("--verbose", default=False, action="store_true") group.add_argument("--debug", default=False, action="store_true") subp = parser.add_subparsers() parser_a = subp.add_parser("db", help="a help") parser_a.add_argument("bar", type=int, help="bar help")...

Hey @dlwh , encoding = dc->dict (via the `encode` function) and decoding = dict->dc Therefore asdict is more about encoding, and therefore I dont understand why calling asdict on the...

I dont completely understand the test in the issue atm. I'll take a better look a bit later today.