Make positional arguments required in the argument parser #12503
Labels
argparse (removed)
Related to argument parsing (argparse, Hydra, ...)
feature
Is an improvement or enhancement
Milestone
🚀 Feature
Make positional arguments required for classes passed into the
add_argparse_args
function.Motivation
I use the
add_argparse_args
function not only for the Trainer but also for additional classes required for my training script (e.g. the DataModule). Some arguments of the additional classes are positional and do not have suitable default values. In the current implementation, positional arguments receive a default value ofinspect._empty
, which usually leads to unforeseen errors somewhere further down the line.Pitch
In the ptl argument parser utilities, modify the parser such that positional arguments of a class given to the
add_argparse_args
are marked as required in the resulting ArgumentParser.cc @Borda
The text was updated successfully, but these errors were encountered: