SimpleParsing icon indicating copy to clipboard operation
SimpleParsing copied to clipboard

Simple, Elegant, Typed Argument Parsing with argparse

Results 76 SimpleParsing issues
Sort by recently updated
recently updated
newest added

It would be nice to be able to add arguments for a given TypedDict, in addition to dataclasses. ```python class FfcvLoaderConfig(TypedDict, total=False): os_cache: bool """ Leverages the operating system for...

This PR adds Partials: Dynamically created dataclasses for arbitrary callables. It's still a work in progress. I'll update this whenever I find the time.

The changes in the latest PRs for the nesting mode/nesting level were backward-incompatible. The blame is on me for letting them through without checking this first. - The `add_dest_to_option_strings` argument...

bug

Having a boolean option with a default value of `True`: ``` from dataclasses import dataclass from simple_parsing import ArgumentParser @dataclass class Args: enable_water: bool = True # Do you want...

help wanted
good first issue

**Is your feature request related to a problem? Please describe.** I would like to be able to load the args configuration from a json/yaml file, and at the same time...

enhancement

Would be a good idea to refactor the FieldWrapper class a bit. The `args_dict` (a dict of all the argparse arguments for a given field, that get passed to `parser.add_arguments`...

refactoring

**Is your feature request related to a problem? Please describe.** I am wondering if its possible to tie some argument values together. For example, when I train an Encoder-Decoder architecture,...

In the example here: https://github.com/lebrice/SimpleParsing/tree/master/examples/enums Calling `args = parser.parse_args(["--help"])` gives: ` --color Color my favorite colour (default: BLUE)` It would be nice to get a list of possible choices here,...